mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
Run migrations on the first web instance startup
This commit is contained in:
7
scripts/migrate_and_run_web.sh
Executable file
7
scripts/migrate_and_run_web.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $CF_INSTANCE_INDEX -eq 0 ]]; then
|
||||
flask db upgrade
|
||||
fi
|
||||
|
||||
${HOME}/scripts/run_app_paas.sh gunicorn -c ${HOME}/gunicorn_config.py application
|
||||
Reference in New Issue
Block a user