Opened 5 years ago

Last modified 5 years ago

#1030 new enhancement

supervisord examples in documentation

Reported by: arthur.lutz Owned by:
Priority: minor Milestone:
Component: programming Keywords:
Cc: Parent Tickets:

Description

One way of running paste and the celery worker is to use supervisord, it would be nice to include and example in the code or the doc

Subtickets

Change History (1)

comment:1 Changed 5 years ago by arthur.lutz

My current setup looks like this (still work in progress)

# more /etc/supervisor/conf.d/mediagoblin.conf
[program:mediagoblin-celery]
environment=CELERY_CONFIG_MODULE=mediagoblin.init.celery.from_celery,MEDIAGOBLIN_CONFIG=/srv/videos.example.org/mediagoblin/mediagoblin.ini
command=/srv/videos.example.org/mediagoblin/bin/celery worker
user=mediagoblin
directory=/srv/videos.example.org/mediagoblin/

[program:mediagoblin-paste]
environment=CELERY_ALWAYS_EAGER=false
command=/srv/videos.example.org/mediagoblin/bin/paster serve /srv/videos.example.org/mediagoblin/paste.ini --server-name
=fcgi fcgi_host=127.0.0.1 fcgi_port=26543
directory=/srv/videos.example.org/mediagoblin/
user=mediagoblin

Note: See TracTickets for help on using tickets.