I am working on a Django app, and I would like my Database migrations to be run when deploying on Heroku.
So far we have simply put the following command in the Proc
The migrate does automatically runs on Heroku, but for now you can safely do it once your dyno is deployed with heroku run python manage.py migrate.
heroku run python manage.py migrate
If production, you can put your app in maintenance first with heroku maintenance:on --app=
heroku maintenance:on --app=