blob: f212d36c0a3b493da8b95c3c61869387a1dca5d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
[program:gunicorn]
command={{ PYTHON }} {{ PROJECT_DIR }}/manage.py run_gunicorn --workers=2 --max-requests=1000 --bind=127.0.0.1:{{ settings.GUNICORN_PORT }}
{% if settings.DEBUG %}
exclude=true
{% endif %}
{% if not settings.DEBUG %}
[program:runserver]
exclude=true
{% endif %}
[program:celeryd]
{% if settings.DEBUG %}
command={{ PYTHON }} {{ PROJECT_DIR }}/manage.py celeryd -E --loglevel=INFO
{% else %}
command={{ PYTHON }} {{ PROJECT_DIR }}/manage.py celeryd -E
{% endif %}
directory={{ PROJECT_DIR }}
numprocs=1
startsecs=5
; Need to wait for currently executing tasks to finish at shutdown.
; Increase this if you have very long running tasks.
stopwaitsecs = 600
[program:celerycam]
command={{ PYTHON }} {{ PROJECT_DIR }}/manage.py celerycam
{% if settings.DEBUG %}
[program:redis]
command=redis-server
{% endif %}
|