-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0818cf2
commit 2c08a37
Showing
1 changed file
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |