Skip to content

Instantly share code, notes, and snippets.

@gileno
Created August 18, 2013 14:03
Show Gist options
  • Save gileno/6261823 to your computer and use it in GitHub Desktop.
Save gileno/6261823 to your computer and use it in GitHub Desktop.
Supervisor Conf / Guncorn Conf
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
bind = '127.0.0.1:9999'
workers = 2
logfile = '/tmp/gunicorn_project.log'
[program:project]
command=/home/ubuntu/venv/bin/gunicorn_django -c /home/ubuntu/project/gunicorn.conf.py --pid=/home/ubuntu/project.pid
directory=/home/ubuntu/project/
user=ubuntu
autostart=true
autorestart=true
redirect_stderr=True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment