mirror of https://github.com/snachodog/mybuddy.git
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:
parent
d898817629
commit
bf031fcc85
3
Procfile
3
Procfile
|
@ -1,2 +1 @@
|
|||
release: python manage.py migrate
|
||||
web: gunicorn babybuddy.wsgi:application --timeout 30 --log-file -
|
||||
web: bash Procfile.sh
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
python manage.py migrate
|
||||
python manage.py createcachetable
|
||||
|
||||
gunicorn babybuddy.wsgi:application --timeout 30 --log-file -
|
7
app.json
7
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue