From 6eaa6ac158d9bc2fa509edd99c92f91be348b60e Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Wed, 27 May 2020 12:58:50 -0400 Subject: [PATCH] Adds option to load RRT example data --- docker_run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker_run.sh b/docker_run.sh index 6fbb21f3..6bc3c90b 100755 --- a/docker_run.sh +++ b/docker_run.sh @@ -14,10 +14,15 @@ if [ "$UPGRADE_DB" = "true" ]; then fi if [ "$RESET_DB" = "true" ]; then - echo 'Resetting database...' + 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...' + pipenv run flask load-example-rrt-data +fi + if [ "$APPLICATION_ROOT" = "/" ]; then pipenv run gunicorn --bind 0.0.0.0:$PORT0 wsgi:app else