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

Adapt to new startup logic. #39

parent 486e0d58
No related branches found
No related tags found
No related merge requests found
...@@ -8,14 +8,14 @@ ...@@ -8,14 +8,14 @@
"name": "Start Aura Engine", "name": "Start Aura Engine",
"type": "python", "type": "python",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/engine-core.py", "program": "${workspaceFolder}/run.py",
"console": "integratedTerminal" "console": "integratedTerminal"
}, },
{ {
"name": "Start Engine Core Only", "name": "Start Engine Core Only",
"type": "python", "type": "python",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/engine-core.py", "program": "${workspaceFolder}/run.py",
"args": [ "args": [
"--without-lqs" "--without-lqs"
], ],
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
"name": "Start Engine LQS Only", "name": "Start Engine LQS Only",
"type": "python", "type": "python",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/engine-core.py", "program": "${workspaceFolder}/run.py",
"args": [ "args": [
"--lqs-only" "--lqs-only"
], ],
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
"name": "Aura Engine - Recreate Database", "name": "Aura Engine - Recreate Database",
"type": "python", "type": "python",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/engine-core.py", "program": "${workspaceFolder}/run.py",
"args": ["--recreate-database"], "args": ["--recreate-database"],
"console": "integratedTerminal" "console": "integratedTerminal"
} }
......
...@@ -58,26 +58,26 @@ if [[ $docker == "false" ]]; then ...@@ -58,26 +58,26 @@ if [[ $docker == "false" ]]; then
if [[ $mode == "engine" ]]; then if [[ $mode == "engine" ]]; then
eval $(opam env) eval $(opam env)
/usr/bin/env $PYTHON_EXEC engine-core.py /usr/bin/env $PYTHON_EXEC run.py
fi fi
### Runs Engine Core only ### ### Runs Engine Core only ###
if [[ $mode == "core" ]]; then if [[ $mode == "core" ]]; then
/usr/bin/env $PYTHON_EXEC engine-core.py --without-lqs /usr/bin/env $PYTHON_EXEC run.py --without-lqs
fi fi
### Runs Liquidsoap only ### ### Runs Liquidsoap only ###
if [[ $mode == "lqs" ]]; then if [[ $mode == "lqs" ]]; then
lqs=$(/usr/bin/env $PYTHON_EXEC engine-core.py --get-lqs-command) lqs=$(/usr/bin/env $PYTHON_EXEC run.py --get-lqs-command)
eval "$lqs" eval "$lqs"
fi fi
### CAUTION: This deletes everything in your database ### ### CAUTION: This deletes everything in your database ###
if [[ $mode == "recreate-database" ]]; then if [[ $mode == "recreate-database" ]]; then
/usr/bin/env $PYTHON_EXEC engine-core.py --recreate-database /usr/bin/env $PYTHON_EXEC run.py --recreate-database
fi fi
fi fi
......
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