Skip to content

Instantly share code, notes, and snippets.

@ericholscher
Created December 11, 2010 21:35
Show Gist options
  • Save ericholscher/737674 to your computer and use it in GitHub Desktop.
Save ericholscher/737674 to your computer and use it in GitHub Desktop.
description "Gunicorn for ReadTheDocs"
start on runlevel [2345]
stop on runlevel [!2345]
#Send KILL after 20 seconds
kill timeout 5
respawn
env VENV="/home/docs/sites/readthedocs.org"
#Serve Gunicorn on the internal rackspace IP.
script
exec sudo -u docs $VENV/bin/gunicorn_django --preload -w 2 --log-level debug --log-file $VENV/run/gunicorn.log -p $VENV/run/gunicorn.pid -b 127.0.0.1:8888 $VENV/checkouts/readthedocs.org/settings/postgres.py
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment