diff --git a/Procfile b/Procfile index 04a82645..55cb726a 100644 --- a/Procfile +++ b/Procfile @@ -1,2 +1 @@ -release: python manage.py migrate -web: gunicorn babybuddy.wsgi:application --timeout 30 --log-file - \ No newline at end of file +web: bash Procfile.sh \ No newline at end of file diff --git a/Procfile.sh b/Procfile.sh new file mode 100644 index 00000000..a017850e --- /dev/null +++ b/Procfile.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +python manage.py migrate +python manage.py createcachetable + +gunicorn babybuddy.wsgi:application --timeout 30 --log-file - \ No newline at end of file diff --git a/app.json b/app.json index 7bcc51e9..8ad68547 100644 --- a/app.json +++ b/app.json @@ -35,11 +35,8 @@ "environments": { "review": { "scripts": { - "postdeploy": "python manage.py migrate && python manage.py createcachetable && python manage.py reset --no-input" + "postdeploy": "python manage.py reset --no-input" } } - }, - "scripts": { - "postdeploy": "python manage.py migrate && python manage.py createcachetable" - } + } }