Browse Source

Update gunicorn_start.sh

pull/854/head
Rogério Frá 8 years ago
committed by Eduardo Edson Batista Cordeiro Alves
parent
commit
dc8af113b1
  1. 6
      gunicorn_start.sh

6
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

Loading…
Cancel
Save