Skip to content

Instantly share code, notes, and snippets.

@jeffmarshall
Created November 7, 2011 22:26
Show Gist options
  • Save jeffmarshall/1346404 to your computer and use it in GitHub Desktop.
Save jeffmarshall/1346404 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
LOGFILE=/var/log/gunicorn/lex.log
NUM_WORKERS=3
# user/group to run as
USER=lex
GROUP=lex
cd /srv/lex/site/lex
source ../../env/bin/activate
exec /srv/lex/site/lex/manage.py run_gunicorn -w $NUM_WORKERS \
--log-level=debug \
--log-file=$LOGFILE 2>>$LOGFILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment