44 lines
935 B
Plaintext
44 lines
935 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
|
|
[program:app]
|
|
command=uwsgi
|
|
--http 0.0.0.0:80
|
|
--http-timeout 15
|
|
--buffer-size 32768
|
|
--processes 2
|
|
--threads 2
|
|
--chdir /app/
|
|
--wsgi-file wsgi.py
|
|
--harakiri 30
|
|
--evil-reload-on-as 500
|
|
--master
|
|
--log-5xx
|
|
--vacuum
|
|
--need-app
|
|
--disable-write-exception
|
|
--static-map /medicine-mts/django_static=/app/django_static
|
|
autostart=true
|
|
autorestart=true
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes = 0
|
|
stderr_maxbytes=0
|
|
|
|
[program:worker]
|
|
directory=/app
|
|
command=celery -A appa worker -Q default -n worker@appa --soft-time-limit=3600 --concurrency=1 --loglevel=INFO
|
|
autostart=true
|
|
autorestart=true
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes = 0
|
|
stderr_maxbytes=0
|
|
|
|
[program:scheduler]
|
|
directory=/app
|
|
command=celery -A appa beat --loglevel=INFO
|
|
autostart=true
|
|
autorestart=true
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes = 0
|
|
stderr_maxbytes=0
|