Skip to content

Instantly share code, notes, and snippets.

@oaksakal
Forked from stefanfoulis/readme.rst
Created August 13, 2011 08:28
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save oaksakal/1143612 to your computer and use it in GitHub Desktop.
Save oaksakal/1143612 to your computer and use it in GitHub Desktop.
example supervisord script for starting django and gunicorn

example configuration for supervisord

; only run one of this process per deployment!
[program:projectname_celeryd_live]
command=/home/myusername/projectname-live/bin/django celerybeat
directory=/home/myusername/projectname-live/
user=myusername
autostart=True
autorestart=True
redirect_stderr=True
; only run one of this process per deployment!
[program:projectname_celeryd_live]
command=/home/myusername/projectname-live/bin/django camqadm
directory=/home/myusername/projectname-live/
user=myusername
autostart=True
autorestart=True
redirect_stderr=True
; only run one of this process per deployment!
[program:projectname_celeryd_live]
command=/home/myusername/projectname-live/bin/django celeryev
directory=/home/myusername/projectname-live/
user=myusername
autostart=True
autorestart=True
redirect_stderr=True
; run as many as you like of this process!
[program:projectname_celeryd_live]
command=/home/myusername/projectname-live/bin/django celeryd
directory=/home/myusername/projectname-live/
user=myusername
autostart=True
autorestart=True
redirect_stderr=True
; run as many as you like of this process! But remember to change the ports
[program:projectname_gunicorn_live]
command=/home/myusername/projectname-live/bin/django run_gunicorn -b 127.0.0.1:1559
directory=/home/myusername/projectname-live/
user=myusername
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