Craft 3 is a PHP application based on Yii2, and is installed via Composer.
This means that it’s well-suited for deployment to cloud-based platforms like Heroku. In this case, we’ve put together a barebones starter-kit for running a Craft application on Heroku.
There are a couple of limitations, here, that are important to note if it’s your first time using Heroku:
php://stderr, so the logs can be “Drained” anywhere you like.
Read more about 12-factor app architecture—the underlying principles of the Heroku platform.
It’s also worth mentioning: The traditional “queue” is handled here by a
worker Dyno. In order to run the app locally, you’ll need to spin up a queue daemon to ensure your jobs are taken care of:
$ ./craft queue/listen --verbose
☝️ This is the same worker command you see in the
Procfile in the project's root! It’ll get booted alongside your
Just click this button to set up your first app!
This script does a few things:
webprocesses and one
You might encounter some visual issues with the installation process—this is because the
cpresourcesthat this process moves into the public web root happens on a Dyno-by-Dyno basis, and the initial request for the installation page is not apt to have been hit on both servers—but susequent requests for those assets could still be served by another dyno. Refresh the page a few times, and both dynos will begin to warm their