diff --git a/service/start-dev.sh b/service/start-dev.sh deleted file mode 100644 index 1afa6aa..0000000 --- a/service/start-dev.sh +++ /dev/null @@ -1,4 +0,0 @@ -source venv/bin/activate -export FLASK_ENV=development -source ./api.env -python app.py diff --git a/service/start-stage.sh b/service/start-stage.sh deleted file mode 100644 index 27b413e..0000000 --- a/service/start-stage.sh +++ /dev/null @@ -1,5 +0,0 @@ -source venv/bin/activate -export FLASK_ENV=stage -source ./api.env -export ENV='STAGE' -python app.py diff --git a/service/start.sh b/service/start.sh new file mode 100644 index 0000000..a3a94b8 --- /dev/null +++ b/service/start.sh @@ -0,0 +1,10 @@ +source venv/bin/activate +source ./api.env + +if [ "$1" == "--stage" -o "$1" == "-s" ]; then + export ENV='STAGE'; export FLASK_ENV=stage +else + export ENV='DEVELOPMENT'; export export FLASK_ENV=development +fi + +python app.py