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