Skip to content

Commit

Permalink
gunicorn_start.sh fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskoenig committed Aug 23, 2018
1 parent 0fc65bd commit 38c74ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gunicorn_start.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 38c74ed

Please sign in to comment.