post-deploy.sh
352 Bytes
#!/bin/sh
# SCript to run after application source was updated.
#
# Should be execute within root directory of project
SCRIPT=$(readlink -f "$0")
PROJECT_PATH=$(dirname "$SCRIPT")/..
. ${PROJECT_PATH}/venv/bin/activate
pip install -r ${PROJECT_PATH}/requirements.txt
# Now run some cli post update commands
# flask db upgrade
# flask translation