fixed server starting in venv, and not system-wide

server.py was started with system-wide python env. source makes it run in venv
pull/114/head
Kortho 2019-07-02 10:24:16 +02:00 committed by GitHub
parent 8dae1b1524
commit 6eb03bcdd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ fi
sleep 0.1
if [ "${check_dashboard_port}" == "1" ]; then
echo -e $GREEN"\t* Launching flask server"$DEFAULT
${ENV_PY} ./server.py &
source ${DIR}/DASHENV/activate && python ./server.py &
else
echo -e $RED"\t* NOT starting flask server, made a very unrealiable check on port 8001, and something seems to be there… please double check if this is good!"$DEFAULT
fi