cr-connect-workflow/docker_run.sh

13 lines
227 B
Bash
Raw Normal View History

#!/bin/bash
# run migrations
export FLASK_APP=./crc/__init__.py
pipenv run flask db upgrade
if [ "$RESET_DB" = "true" ]; then
echo 'Resetting database...'
pipenv run flask load-example-data
fi
pipenv run python ./run.py