Auto migrate Django in Heroku on push


Auto migrate Django in Heroku on push

2017/04/09

Tags: heroku django migrate

In your Procfile, add the following:

release: python manage.py migrate --noinput

Heroku will run this command everytime you deploy the app. This command is run after all other commands so you can be sure that new migrations and dependencies are there before this command executes.