re-enable the reset_db

This commit is contained in:
Dan 2021-08-06 15:41:23 -04:00
parent 08a2c3688d
commit 069f1d12b7
1 changed files with 4 additions and 8 deletions

View File

@ -13,14 +13,10 @@ if [ "$UPGRADE_DB" = "true" ]; then
pipenv run flask db upgrade
fi
# This is commented to keep humans from clearing the db accidentally.
# If you need to reset the db, you can uncomment,
# then set RESET_DB to true in config, push code, and pray
#if [ "$RESET_DB" = "true" ]; then
# echo 'Resetting database and seeding it with example CR Connect data...'
# pipenv run flask load-example-data
#fi
if [ "$RESET_DB" = "true" ]; then
echo 'Resetting database and seeding it with example CR Connect data...'
pipenv run flask load-example-data
fi
if [ "$RESET_DB_RRT" = "true" ]; then
echo 'Resetting database and seeding it with example RRT data...'