This template demonstrates building Directus for Heroku. It contains addons to let you run Directus with PostgreSQL and Redis.
- Node.js (via nodejs buildpack)
- PostgreSQL (via postgresql addon)
- Redis (via redis addon)
- Email (via mailgun addon)
Make sure to configure the storage settings for your project, otherwise you won't be able to upload files to your instance. This template has some placeholder settings to guide on how to configure storage using DigitalOcean spaces, but you can use any (non local) compatible storage service in Heroku. For more information on how to configure Directus storage, check our supported environment variables.
This template uses Mailgun starter addon to setup emails for you project. It's highly recommended that you configure the email to your preferred settings after provisioning your project.
Your initial admin email and password is created based on ADMIN_EMAIL
and ADMIN_PASSWORD
you set on project creation. If you don't have those set, random ones are going to be provisioned for you, and you must check the deployment logs via heroku releases
to get them.
After you log in for the first time, be sure to update your email and password immediately and remove those variables from your environment.
This template uses PostgreSQL, but Directus supports a number of other options that can be easily substituted using other Heroku addons.