From 774105052a6ca885db43d6ebc9315a903a39bc3a Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Wed, 19 Aug 2020 18:56:30 +0200 Subject: [PATCH] Virtual env for running server. --- run.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 9e82048..4e10d2b 100755 --- a/run.sh +++ b/run.sh @@ -41,10 +41,12 @@ if [[ $docker == "false" ]]; then ### Runs the API Server (Development) ### if [[ $mode == "api-dev" ]]; then + echo "Activating Python Environment" + source python/bin/activate # echo "Building Web Applications" # sh ./script/build-web.sh echo "Starting API Server" - /usr/bin/env python3.7 src/app.py + python src/app.py fi ### Runs the API Server (Test) ### @@ -72,7 +74,7 @@ if [[ $docker == "false" ]]; then if [[ $mode == "api" ]]; then echo "Activating Python Environment" - source ../python-env/bin/activate + source python/bin/activate echo "Starting API Server" gunicorn -c config/gunicorn.conf.py src.app:app fi -- GitLab