supervisor

This commit is contained in:
2025-09-18 11:44:01 +00:00
parent f156679578
commit b21ec21516
7 changed files with 46 additions and 8 deletions

23
supervisor.conf Normal file
View File

@@ -0,0 +1,23 @@
[supervisord]
nodaemon=true
user=root
[program:gunicorn]
command=gunicorn -w 4 --threads 2 -k uvicorn.workers.UvicornWorker --forwarded-allow-ips='*' main:app -b 0.0.0.0:8000
directory=/app
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:huey]
command=huey_consumer.py main.huey -w 4
directory=/app
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0