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

Virtual env for running server.

parent 854ffcbe
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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