Tweak supervisord config
This commit is contained in:
parent
84203fc66e
commit
eb9a6024a8
4 changed files with 201 additions and 17 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue