Cookies ahead

Our support chat tool "Intercom" would like to collect some more data on you. See the related link for more details.

Docs

Craft CMS setup at fortrabbit

Published

Updated

Reviewedbyfl

Create an app at fortrabbit for your Craft CMS.

Install and deploy run down

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

To enable automatic git deployments the fortrabbit GitHub App needs to be installed with your personal account. You can do and verify this with your account settings:

You can also do that later or skip it altogether if you don't plan to use automatic git deployment, but use SFTP upload.

Create an app at fortrabbit

Create a new app in the fortrabbit dashboard. The wizard will guide you through the steps.

If you have the GitHub app connected and already a Git repo for your project you can connect the repo now. It will detect the software. If not, choose Craft CMS as software.

Configuration

If Craft CMS is detected or you have chosen it in the software list, the Craft CMS software template will be applied. This will pre-configure common ENV vars, build commands, post deploy commands and set the root path to web.

Craft CMS 5, 4, 3

DeploymentValue
Root pathweb
Deploy strategymerge
Replaced paths/config/project
Excluded paths/node_modules
Build commandscomposer install --no-dev --prefer-dist --no-interaction --no-ansi --no-progress
Post-deploy commandsphp craft migrate/allphp craft project-config/applyphp craft clear-caches/all
Environment variablesValue
CRAFT_ENVIRONMENT${FORTRABBIT_ENVIRONMENT_NAME}
CRAFT_DEV_MODEfalse
CRAFT_ALLOW_ADMIN_CHANGESfalse
CRAFT_ALLOW_UPDATESfalse
CRAFT_SECURITY_KEY!RANDOM_KEY!
CRAFT_STREAM_LOGtrue
Database environment variablesValue
CRAFT_DB_SERVER${FORTRABBIT_DB_HOST}
CRAFT_DB_DRIVERmysql
CRAFT_DB_DSNmysql:host=${FORTRABBIT_DB_HOST};port=3306;dbname=${FORTRABBIT_DB_NAME}
CRAFT_DB_PASSWORD${FORTRABBIT_DB_PASSWORD}
CRAFT_DB_USER${FORTRABBIT_DB_USER}

Written by a human. Review, grammar checks and typo fixes by AI.

AI use & editorial processEdit on GitHub ↗