Skip to content

Instantly share code, notes, and snippets.

@ma1onso
Last active March 11, 2017 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ma1onso/87faa6881995f55844015d87bbaeb68c to your computer and use it in GitHub Desktop.
Save ma1onso/87faa6881995f55844015d87bbaeb68c to your computer and use it in GitHub Desktop.
Supervisor programs - uwsgi, celery and celery_beat
# Place this data inside /etc/supervisor/conf.d/project.conf
[program:uwsgi]
command=/home/user/.virtualenvs/project/bin/uwsgi --ini project_uwsgi.ini
stdout_logfile=/home/user/logs/uwsgi/output.log
stderr_logfile=/home/user/logs/uwsgi/error.log
autostart=true
autorestart=true
stopsignal=INT
[program:celery]
command=/home/user/.virtualenvs/project/bin/celery -A APP_NAME worker -l info
stdout_logfile=/home/user/logs/celery/output.log
stderr_logfile=/home/user/logs/celery/error.log
autostart=true
autorestart=true
startsecs=10
[program:celery_beat]
command=/home/user/.virtualenvs/project/bin/celery -A APP_NAME beat -l info -S django
stdout_logfile=/home/user/logs/celery/beat_output.log
stderr_logfile=/home/user/logs/celery/beat_error.log
autostart=true
autorestart=true
startsecs=10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment