From 0cbbf662532c02a891760b84ad637e558ca8e8ad Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson <frjo@xdeb.org> Date: Wed, 26 Sep 2018 11:25:39 +0200 Subject: [PATCH] Add a release phase to Heroku Procfile to autorun migration on deploy. --- Procfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Procfile b/Procfile index 96d417e00..04299ea9e 100644 --- a/Procfile +++ b/Procfile @@ -1 +1,2 @@ -web: gunicorn opentech.wsgi:application +release: python manage.py migrate --noinput +web: gunicorn opentech.wsgi:application --log-file - -- GitLab