Skip to content
Sundin edited this page Mar 4, 2021 · 3 revisions

Here are some useful Heroku CLI commands in addition to the ones specified in the README.

Creating a new app

This is how we created the hompi-backend app on Heroku in the first place:

heroku apps:create hompi-backend --region eu

Then we added a database:

heroku addons:create heroku-postgresql:hobby-dev --app=hompi-backend

Adding collaborator

heroku access:add --app=hompi-backend <email>

Environment variables

We have manually added the following environment variables: DJANGO_SUPERUSER_EMAIL, DJANGO_SUPERUSER_PASSWORD and DJANGO_SUPERUSER_USERNAME.

Show environment variables

heroku config --app=hompi-backend
Clone this wiki locally