Skip to content
Snippets Groups Projects
Commit 704f8aff authored by David Trattnig's avatar David Trattnig
Browse files

Update default targets.

parent 2b2d1c2f
No related branches found
No related tags found
No related merge requests found
Pipeline #1119 passed
...@@ -9,17 +9,17 @@ docker="false" ...@@ -9,17 +9,17 @@ docker="false"
# Call with one of these parameters: # Call with one of these parameters:
# #
# - dev # - dev
# - api # - prod
# - test # - test
# - recreate-database # - recreate-database
# - docker:recreate-database # - docker:recreate-database
# - docker:build # - docker:build
# - docker:push # - 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 mode=$1
fi fi
...@@ -67,7 +67,7 @@ if [[ $docker == "false" ]]; then ...@@ -67,7 +67,7 @@ if [[ $docker == "false" ]]; then
### Runs the API Server using Gunicorn without a system daemon (Production) ### ### Runs the API Server using Gunicorn without a system daemon (Production) ###
if [[ $mode == "api" ]]; then if [[ $mode == "prod" ]]; then
echo "Starting API Server" echo "Starting API Server"
gunicorn -c config/gunicorn.conf.py src.app:app gunicorn -c config/gunicorn.conf.py src.app:app
fi fi
...@@ -93,7 +93,7 @@ if [[ $docker == "true" ]]; then ...@@ -93,7 +93,7 @@ if [[ $docker == "true" ]]; then
### Runs Engine API using Gunicorn ### ### Runs Engine API using Gunicorn ###
if [[ $mode == "api" ]]; then if [[ $mode == "dev" ]]; then
exec sudo docker run \ exec sudo docker run \
--network="host" \ --network="host" \
--name aura-engine-api \ --name aura-engine-api \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment