Use bash script for Procfile (#465)

This allows for more flexibility without requiring Heroku's post deploy and release hooks.
This commit is contained in:
Christopher Charbonneau Wells 2022-06-01 07:10:55 -07:00 committed by GitHub
parent d898817629
commit bf031fcc85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 7 deletions

View File

@ -1,2 +1 @@
release: python manage.py migrate web: bash Procfile.sh
web: gunicorn babybuddy.wsgi:application --timeout 30 --log-file -

6
Procfile.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
python manage.py migrate
python manage.py createcachetable
gunicorn babybuddy.wsgi:application --timeout 30 --log-file -

View File

@ -35,11 +35,8 @@
"environments": { "environments": {
"review": { "review": {
"scripts": { "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"
}
} }