Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
engine-api
Commits
704f8aff
Commit
704f8aff
authored
Nov 29, 2021
by
David Trattnig
Browse files
Update default targets.
parent
2b2d1c2f
Pipeline
#1119
passed with stages
in 3 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
run.sh
View file @
704f8aff
...
...
@@ -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
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment