Supervisord Gunicorn

November 24, 2010

Now that we know the basics of supervisord (http://drumcoder.co.uk/blog/2010/nov/24/supervisord-basics/), we can put it to work starting gunicorn.

Here's the basic configuration you'll need for a gunicorn server:

[program:bbr]
command=gunicorn_django -b localhost:8003 -p /tmp/gunicorn-bbr-pid settingsstaging.py
directory=/home/user/web/bbr
environment=PYTHONPATH=/home/user/web/bbr
user=www-data
autostart=true
autorestart=true
stdout_logfile=/home/user/log/bbr/supervisord-bbr.log
redirect_stderr=true

References