diff --git a/run.sh b/run.sh index b50c71cc63b02dc783607bcdb8860d6df4cb0119..bc403abbc9f844acc13560a7dceef6fc17869200 100755 --- a/run.sh +++ b/run.sh @@ -9,17 +9,17 @@ docker="false" # Call with one of these parameters: # # - dev -# - api +# - prod # - test # - recreate-database # - docker:recreate-database # - docker:build # - docker:push -# - docker:api +# - docker:dev # -if [[ $* =~ ^(dev|api-test-0|api-test-1|api-test-2|api|test)$ ]]; then +if [[ $* =~ ^(dev|api-test-0|api-test-1|api-test-2|prod|test)$ ]]; then mode=$1 fi @@ -67,7 +67,7 @@ if [[ $docker == "false" ]]; then ### Runs the API Server using Gunicorn without a system daemon (Production) ### - if [[ $mode == "api" ]]; then + if [[ $mode == "prod" ]]; then echo "Starting API Server" gunicorn -c config/gunicorn.conf.py src.app:app fi @@ -93,7 +93,7 @@ if [[ $docker == "true" ]]; then ### Runs Engine API using Gunicorn ### - if [[ $mode == "api" ]]; then + if [[ $mode == "dev" ]]; then exec sudo docker run \ --network="host" \ --name aura-engine-api \