Skip to content

Commit

Permalink
Unified bash file for running api for stage and dev
Browse files Browse the repository at this point in the history
(cherry picked from commit 6650508)
  • Loading branch information
jaykay12 committed May 9, 2020
1 parent d56b5f6 commit f57a067
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 0 additions & 4 deletions service/start-dev.sh

This file was deleted.

5 changes: 0 additions & 5 deletions service/start-stage.sh

This file was deleted.

10 changes: 10 additions & 0 deletions service/start.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f57a067

Please sign in to comment.