cr-connect-workflow/docker_run.sh

19 lines
294 B
Bash
Raw Normal View History

#!/bin/bash
# run migrations
export FLASK_APP=./crc/__init__.py
for entry in ./instance/* ; do
echo "$entry"
cat $entry
done
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