Skip to content

openbook-schrobe/heroku-buildpack-django-migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Buildpack Django Migrate

N.B. This buildpack is not intended for production use.

Heroku buildpack to run Django migrations on every deploy. This works well with Heroku's automatic deployments where you can push to your Git develop branch, for example, and have the changes automatically deployed to a staging app (w/o having to worry about database migrations).

Setup

  1. Set Heroku's default Python buildpack for your app
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-python
  1. Add this buildpack
heroku buildpacks:add https://github.com/andreipetre/heroku-buildpack-django-migrate

Now whenever you push to your Heroku app, it will run python manage.py migrate as part of the build process.

About

Heroku buildpack to run Django migrations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages