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
- Install Craft CMS 6 locally
- Set up an app at fortrabbit ← you are here
- Deploy code via Git
- Database syncing
- 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.