优化更新
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
; Supervisor 进程管理示例配置
|
||||
; 将 command / directory 替换为实际路径后复制到 /etc/supervisor/conf.d/
|
||||
|
||||
[program:djangoadmin-fastapi]
|
||||
; 启动命令:使用项目虚拟环境中的 uvicorn
|
||||
command=/path/to/venv/bin/uvicorn src.main:app --host 127.0.0.1 --port 8031
|
||||
; 项目根目录
|
||||
directory=/path/to/DjangoAdmin_FastAPI_EleVue
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/path/to/logs/supervisor.out.log
|
||||
stdout_logfile_maxbytes=50MB
|
||||
stdout_logfile_backups=10
|
||||
environment=PYTHONUNBUFFERED=1
|
||||
Reference in New Issue
Block a user