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