From 40b3984d54d1aa0b36bdd090aa4f08121e6cb398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rog=C3=A9rio=20Fr=C3=A1?= Date: Thu, 1 Dec 2016 11:04:07 -0200 Subject: [PATCH] Update gunicorn_start.sh --- gunicorn_start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gunicorn_start.sh b/gunicorn_start.sh index f68613c26..904d76a3a 100755 --- a/gunicorn_start.sh +++ b/gunicorn_start.sh @@ -3,8 +3,8 @@ # As seen in http://tutos.readthedocs.org/en/latest/source/ndg.html NAME="SAPL" # Name of the application (*) -DJANGODIR=/home/sapl31/sapl # Django project directory (*) -SOCKFILE=/home/sapl31/sapl/run/gunicorn.sock # we will communicate using this unix socket (*) +DJANGODIR=/var/interlegis/sapl # Django project directory (*) +SOCKFILE=/var/interlegis/sapl/run/gunicorn.sock # we will communicate using this unix socket (*) USER=`whoami` # the user to run as (*) GROUP=`whoami` # the group to run as (*) NUM_WORKERS=9 # how many worker processes should Gunicorn spawn (*) @@ -16,7 +16,7 @@ echo "Starting $NAME as `whoami`" # Activate the virtual environment cd $DJANGODIR -source ~/.virtualenvs/sapl/bin/activate +source /var/interlegis/.virtualenvs/sapl/bin/activate export DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE export PYTHONPATH=$DJANGODIR:$PYTHONPATH