Skip to content

Commit

Permalink
tweak quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronhelton committed Nov 12, 2021
1 parent 0818cf2 commit 2c08a37
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions quickstart.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
# Use this to quickstart the Flask application. Note that the environment must
# be in all caps, e.g., DEV, QAT, UAT, PROD
echo "Starting $1 environment"

ENV=$1

if [ -z $1 ]
then
ENV="DEV"
fi

echo "Starting $ENV environment"

PWD=`pwd`

. $PWD/venv/bin/activate
unset DLX_REST_
unset DLX_REST_DEV
unset DLX_REST_QAT
unset DLX_REST_UAT
unset DLX_REST_PROD
export FLASK_APP="dlx_rest.app"
export DLX_REST_$1="True"
export DLX_REST_$ENV="True"
flask run --reload

0 comments on commit 2c08a37

Please sign in to comment.