Tweak supervisord config

This commit is contained in:
Thomas Sileo 2022-08-26 18:43:56 +02:00
parent 84203fc66e
commit eb9a6024a8
4 changed files with 201 additions and 17 deletions

View file

@ -4,11 +4,9 @@ logfile=/dev/null
logfile_maxbytes=0
pidfile=data/supervisord.pid
[fcgi-program:uvicorn]
socket=tcp://0.0.0.0:8000
command=uvicorn app.main:app --no-server-header --fd 0
numprocs=2
process_name=uvicorn-%(process_num)d
[program:uvicorn]
command=uvicorn app.main:app --no-server-header --host 0.0.0.0
numprocs=1
redirect_stderr=true
stdout_logfile=data/uvicorn.log
stdout_logfile_maxbytes=50MB

View file

@ -1,10 +1,8 @@
[supervisord]
[fcgi-program:uvicorn]
socket=tcp://localhost:8000
command=%(ENV_VENV_DIR)s/bin/uvicorn app.main:app --no-server-header --fd 0
numprocs=2
process_name=uvicorn-%(process_num)d
[program:uvicorn]
command=%(ENV_VENV_DIR)s/bin/uvicorn app.main:app --no-server-header
numprocs=1
redirect_stderr=true
stdout_logfile=uvicorn.log
stdout_logfile_maxbytes=0