From bf031fcc85d783f3c7ec81760c85272484a752ab Mon Sep 17 00:00:00 2001 From: Christopher Charbonneau Wells <10456740+cdubz@users.noreply.github.com> Date: Wed, 1 Jun 2022 07:10:55 -0700 Subject: [PATCH] Use bash script for Procfile (#465) This allows for more flexibility without requiring Heroku's post deploy and release hooks. --- Procfile | 3 +-- Procfile.sh | 6 ++++++ app.json | 7 ++----- 3 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 Procfile.sh 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" - } + } }