From 704f8aff75e97449a36b152038804966e07493df Mon Sep 17 00:00:00 2001
From: David Trattnig <david@subsquare.at>
Date: Mon, 29 Nov 2021 18:28:00 +0100
Subject: [PATCH] Update default targets.

---
 run.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/run.sh b/run.sh
index b50c71c..bc403ab 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 \
-- 
GitLab