From b9e73b2f08890e9f052f708f8395a7424401be13 Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Wed, 8 Aug 2018 12:03:38 -0400 Subject: [PATCH] Add migrate db before server startup Ensures a fresh deploy properly updates the DB before starting the server and accepting traffic --- script/uwsgi_server | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/uwsgi_server b/script/uwsgi_server index e9633892..275b3b93 100755 --- a/script/uwsgi_server +++ b/script/uwsgi_server @@ -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}"