18 lines
281 B
Bash
Executable File
18 lines
281 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# run migrations
|
|
export FLASK_APP=./crc/__init__.py
|
|
|
|
for entry in ./instance/* ; do
|
|
echo "$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
|