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

Generalize targets.

parent 74884754
No related branches found
No related tags found
No related merge requests found
......@@ -31,4 +31,4 @@ VOLUME ["/srv/socket", "/srv/logs", "/var/audio/source", "/var/audio/playlist"]
# Start the Engine
EXPOSE 1337/tcp
ENTRYPOINT ["./run.sh"]
ENTRYPOINT ["./run.sh", "prod"]
[program:aura-engine]
user = engineuser
directory = /opt/aura/engine
command = /opt/aura/engine/run.sh engine
command = /opt/aura/engine/run.sh prod
priority = 666
autostart = true
......
......@@ -8,7 +8,7 @@ Requires=aura-engine-core.service
Type=simple
User=engineuser
WorkingDirectory=/opt/aura/engine
ExecStart=/opt/aura/engine/run.sh
ExecStart=/opt/aura/engine/run.sh prod
Restart=always
[Install]
......
......@@ -8,16 +8,16 @@ docker="false"
# Call with one of these parameters:
#
# - dev
# - engine
# - prod
# - test
# - recreate-database
# - docker:engine
# - docker:dev
# - docker:build
# - docker:push
#
if [[ $* =~ ^(dev|engine|test|recreate-database)$ ]]; then
if [[ $* =~ ^(dev|prod|test|recreate-database)$ ]]; then
mode=$1
fi
......@@ -50,7 +50,7 @@ if [[ $docker == "false" ]]; then
### Runs Engine ###
if [[ $mode == "engine" ]]; then
if [[ $mode == "prod" ]]; then
/usr/bin/env $PYTHON_EXEC run.py
fi
......@@ -79,7 +79,7 @@ if [[ $docker == "true" ]]; then
### Runs Engine Docker Container ###
if [[ $mode == "engine" ]]; then
if [[ $mode == "dev" ]]; then
if [[ -z "${AURA_ENGINE_CONFIG_PATH}" ]]; then
AURA_ENGINE_CONFIG_PATH=$(readlink -f "${BASE_DIR}/config/engine.docker.ini")
......
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