Set up Craft CMS 6 on fortrabbit

Published

Updated

Create a fortrabbit app with version 6 of the Craft CMS software template.

Install and deploy run down

  1. Install Craft CMS 6 locally
  2. Set up an app at fortrabbit ← you are here
  3. Deploy code via Git
  4. Database syncing
  5. Assets

Create an app

Git deployment needs the fortrabbit GitHub App on the GitHub account. Then create a new app and connect the repository:

The stack detector recognizes Craft CMS 6 and picks version 6 of the Craft CMS software template. Without a repository, choose Craft CMS and version 6 by hand. The template sets:

  • PHP 8.5
  • Root path public
  • The ENV vars for Laravel and the MySQL database
  • The build and post-deploy commands, see deployment

First deployment

The first deployment runs with an empty database, and passes: the post-deploy commands skip php artisan craft:up until Craft is installed. The site returns a 500 error until the database is up.

Written by humans and AI in collaboration.

AI use & editorial processEdit on GitHub ↗