Add migrate db before server startup
Ensures a fresh deploy properly updates the DB before starting the server and accepting traffic
This commit is contained in:
@@ -4,5 +4,8 @@
|
||||
|
||||
source "$(dirname "${0}")"/../script/include/global_header.inc.sh
|
||||
|
||||
# Before starting the server, apply any pending migrations to the DB
|
||||
migrate_db
|
||||
|
||||
# Launch UWSGI
|
||||
run_command "uwsgi --ini ${UWSGI_CONFIG_FULLPATH}"
|
||||
|
Reference in New Issue
Block a user