Skip to content

Instantly share code, notes, and snippets.

@ericholscher
Created November 10, 2010 19:43
Show Gist options
  • Save ericholscher/671382 to your computer and use it in GitHub Desktop.
Save ericholscher/671382 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 10.177.69.207: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