Skip to content

Commit

Permalink
Merge pull request #25 from jaykay12/hotfix
Browse files Browse the repository at this point in the history
Unified bash file for running api for stage and dev
  • Loading branch information
jaykay12 authored May 9, 2020
2 parents d56b5f6 + f57a067 commit f36e604
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 f36e604

Please sign in to comment.