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

Virtual env for Gunicorn.

parent 3481f829
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,13 @@ if [ $mode == "prod" ]; then
echo "Copy configuration to '/etc/aura/engine.ini'"
cp -n configuration/sample-production.engine.ini /etc/aura/engine.ini
echo "Create Virtual Env for Gunicorn"
virtualenv -p /usr/bin/python3.7 ../python-env
source ../python-env/bin/activate
echo "Install Requirements to Virtual Env"
install -r requirements.txt
fi
......
......@@ -42,6 +42,8 @@ fi
if [[ $mode == "api" ]]; then
echo "Building Web Applications"
sh ./script/build-web.sh
echo "Activating Python Environment"
source ../python-env/bin/activate
echo "Starting API Server"
gunicorn -c configuration/gunicorn.conf.py engine-api:app
fi
\ No newline at end of file
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