Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku did not run migrations during deployment #85

Open
lmash opened this issue Jun 26, 2017 · 0 comments
Open

Heroku did not run migrations during deployment #85

lmash opened this issue Jun 26, 2017 · 0 comments

Comments

@lmash
Copy link
Collaborator

lmash commented Jun 26, 2017

The app at https://staging-ocdaction.herokuapp.com/ was returning a Server 500 error
when viewing the act page

heroku Log showed the below
2017-06-26T19:01:32.653345+00:00 app[web.1]: ProgrammingError: column tasks_task.created_at does not exist

To resolve the issue I ran migrations: heroku run python ocdaction/manage.py migrate --app staging-ocdaction

However we should migrate automatically when a new build is deployed to Heroku
adding the below to the top of ocdaction/Procfile should ensure this

release: python manage.py migrate

Needs to be tested though - possibly when next model changes are made

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant