Commit 704f8aff authored by David Trattnig's avatar David Trattnig
Browse files

Update default targets.

parent 2b2d1c2f
Pipeline #1119 passed with stages
in 3 minutes and 36 seconds
......@@ -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 \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment