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:
Devon Mackay 2018-08-08 12:03:38 -04:00
parent df773855d5
commit b9e73b2f08

View File

@ -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}"