mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-22 12:48:25 +00:00
13 lines
227 B
Bash
Executable File
13 lines
227 B
Bash
Executable File
#!/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
|