Supervisor based run
This commit is contained in:
34
app_urls/supervisord.conf
Normal file
34
app_urls/supervisord.conf
Normal file
@@ -0,0 +1,34 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
|
||||
[program:server]
|
||||
command=gunicorn core.wsgi:application --bind 0.0.0.0:8000
|
||||
directory=/opt/app
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/opt/logs/server.log
|
||||
stderr_logfile=/opt/logs/server.log
|
||||
|
||||
[program:beat]
|
||||
command=celery -A core beat -l info --logfile=/opt/logs/beat.log
|
||||
directory=/opt/app
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/opt/logs/beat.log
|
||||
stderr_logfile=/opt/logs/beat.log
|
||||
|
||||
[program:worker_default]
|
||||
command=celery -A core worker -l info --logfile=/opt/logs/worker_default.log --concurrency=1 -Q default -n default
|
||||
directory=/opt/app
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/opt/logs/worker_default.log
|
||||
stderr_logfile=/opt/logs/worker_default.log
|
||||
|
||||
[program:worker_low]
|
||||
command=celery -A core worker -l info --logfile=/opt/logs/worker_low.log --concurrency=1 -Q low -n low
|
||||
directory=/opt/app
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/opt/logs/worker_low.log
|
||||
stderr_logfile=/opt/logs/worker_low.log
|
||||
Reference in New Issue
Block a user