October CMS guide
Published
Updated
Run October CMS on fortrabbit. The October software template serves it from the project root, as October ships, and sets the Laravel ENV vars and the build and post deploy commands.
Get ready
Install October CMS in a local development environment, see the October install guide. October runs on Laravel, so the Laravel guides apply too.
MySQL configuration
The October software template sets the DB_* ENV vars, so config/database.php stays as it is. Locally, the .env file holds the local credentials, see ENV vars.
Root path and public folder
October ships index.php and .htaccess in the project root, and the .htaccess blocks web access to folders such as config and storage. The template leaves the root path empty to match.
Optionally, serve only a public folder: php artisan october:mirror public --relative creates it. Add the command as a post deploy command, as deployments rebuild the folder, and set the root path to public. See October web server configuration.
Create an app at fortrabbit
Create an app with October CMS as the software. The template sets the root path, the deployment settings and the ENV vars.
User sessions
Set the session driver with the SESSION_DRIVER ENV var, see the Laravel session docs. The storage is persistent, so the file driver works. For the database driver:
# Create a migration for the session table - locally
$ php artisan session:table
# Apply the migration - locally
$ php artisan migrate
# Add, commit and push the migration file
$ git add .
$ git commit -m "session migration"
$ git push
# Run the migration on the App via SSH remote execution
$ ssh {{app-env-id}}@ssh.{{region}}.frbit.app php artisan migrate --force
Sending mail
fortrabbit has no sendmail. October sends through Laravel mail: set the SMTP host, port, credentials and from address in config/mail.php or the mail settings of the backend, with a mail account or a transactional mail provider.