Setup Craft CMS

How to configure Craft CMS to run locally AND on fortrabbit.

Get ready

Make sure to have followed our guides so far. You should have already installed Craft locally and deployed it your fortrabbit App.

Craft configuration on fortrabbit

Craft 3 uses modern .env style configuration, learn more about the concepts here. This means you can run your Craft locally and remotely without code or configuration file changes. Locally, your .env file will be modified and read. That file is not part of Git, you don't need it on the App.

Database setup

No need to configure the MySQL database connection for fortrabbit. On fortrabbit the environment variables are seeded from the ones set in the fortrabbit Dashboard (not from the .env file). If you chose Craft in the Software Preset when creating the App, all ENV vars at fortrabbit will already be pre-populated. If not, see here.

Next steps

Craft CMS is configured to run locally and is also ready for fortrabbit. Next you can deploy it with Craft Copy. Don't forget our Craft tuning guide afterwards.

Further reading

Craft CMS

Install guides

Develop & deploy





Tips & tricks

Need individual help?
Learn about Company plans ›
Looking for an old article?
See the full list of articles ›
Found an error?
Contribute on GitHub ›