Initialization cleanup
* Guarantees that the flask db upgrade happens before cron starts * De-duplicates upgrade logic * Provides a convenient place to put more startup steps
This commit is contained in:
parent
94e40ff725
commit
6f2e2243b2
4 changed files with 10 additions and 4 deletions
6
bootstrap/init.sh
Normal file
6
bootstrap/init.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
python3 -m flask db upgrade # this does not actually return error codes properly!
|
||||
|
||||
/usr/local/bin/supervisord -c /etc/supervisord.conf
|
Loading…
Add table
Add a link
Reference in a new issue