From 38c74edcd444c0419c85379a4bf47badb0dc7130 Mon Sep 17 00:00:00 2001 From: Matthias Koenig Date: Thu, 23 Aug 2018 18:21:39 +0200 Subject: [PATCH] gunicorn_start.sh fixed --- gunicorn_start.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gunicorn_start.sh b/gunicorn_start.sh index da72ec3b..279cc9e0 100755 --- a/gunicorn_start.sh +++ b/gunicorn_start.sh @@ -1,19 +1,18 @@ #!/bin/bash - NAME="pkdb" # Name of the application (*) DJANGODIR=/var/git/pkdb # Django project directory (*) SOCKFILE=/var/git/pkdb/run/gunicorn.sock # we will communicate using this unix socket (*) USER=mkoenig # the user to run as (*) GROUP=mkoenig # the group to run as (*) NUM_WORKERS=1 # how many worker processes should Gunicorn spawn (*) -DJANGO_SETTINGS_MODULE=pkdb_app.config.local # which settings file should Django use (*) +DJANGO_SETTINGS_MODULE=pkdb_app.config.production # which settings file should Django use (*) DJANGO_WSGI_MODULE=pkdb_app.wsgi # WSGI module name (*) echo "Starting $NAME as `whoami`" # Activate the virtual environment cd $DJANGODIR -source /var/www/test/venv/bin/activate +source /home/mkoenig/envs/pkdb/bin/activate export DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE export PYTHONPATH=$DJANGODIR:$PYTHONPATH