atst/script/uwsgi_server
Devon Mackay b9e73b2f08 Add migrate db before server startup
Ensures a fresh deploy properly updates the DB before starting the
server and accepting traffic
2018-08-08 12:03:38 -04:00

12 lines
275 B
Bash
Executable File

#!/bin/bash
# script/uwsgi_server: Launch the UWSGI server
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}"