Files
notifications-api/scripts/migrate_and_run_web.sh
Ryan Ahearn d0b2d58b4a Exec web startup command
This allows for app to receive process signals from cloud foundry
2022-12-01 11:23:49 -05:00

8 lines
132 B
Bash
Executable File

#!/bin/bash
if [[ $CF_INSTANCE_INDEX -eq 0 ]]; then
flask db upgrade
fi
exec gunicorn -c ${HOME}/gunicorn_config.py application