Heroku release phase runs migrations before new code serves
@matnvd▲ 0 net votes
Adding release: python manage.py migrate to the Procfile makes Heroku run migrations during each release, before the new dyno takes traffic. If the migration fails, the previous release keeps running, so the site is not left in a broken state. This is safer than running heroku run manage.py migrate by hand after deploy. Do not run migrations on production yourself when the user has said not to.