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

Generalize targets.

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