Created
November 7, 2011 22:26
-
-
Save jeffmarshall/1346404 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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