|
@ -3,8 +3,8 @@ |
|
|
# As seen in http://tutos.readthedocs.org/en/latest/source/ndg.html |
|
|
# As seen in http://tutos.readthedocs.org/en/latest/source/ndg.html |
|
|
|
|
|
|
|
|
NAME="SAPL" # Name of the application (*) |
|
|
NAME="SAPL" # Name of the application (*) |
|
|
DJANGODIR=/home/sapl31/sapl # Django project directory (*) |
|
|
DJANGODIR=/var/interlegis/sapl # Django project directory (*) |
|
|
SOCKFILE=/home/sapl31/sapl/run/gunicorn.sock # we will communicate using this unix socket (*) |
|
|
SOCKFILE=/var/interlegis/sapl/run/gunicorn.sock # we will communicate using this unix socket (*) |
|
|
USER=`whoami` # the user to run as (*) |
|
|
USER=`whoami` # the user to run as (*) |
|
|
GROUP=`whoami` # the group to run as (*) |
|
|
GROUP=`whoami` # the group to run as (*) |
|
|
NUM_WORKERS=9 # how many worker processes should Gunicorn spawn (*) |
|
|
NUM_WORKERS=9 # how many worker processes should Gunicorn spawn (*) |
|
@ -16,7 +16,7 @@ echo "Starting $NAME as `whoami`" |
|
|
|
|
|
|
|
|
# Activate the virtual environment |
|
|
# Activate the virtual environment |
|
|
cd $DJANGODIR |
|
|
cd $DJANGODIR |
|
|
source ~/.virtualenvs/sapl/bin/activate |
|
|
source /var/interlegis/.virtualenvs/sapl/bin/activate |
|
|
export DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE |
|
|
export DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE |
|
|
export PYTHONPATH=$DJANGODIR:$PYTHONPATH |
|
|
export PYTHONPATH=$DJANGODIR:$PYTHONPATH |
|
|
|
|
|
|
|
|