Files
DjangoAdmin_FastAPI_NaiveVue/deploy/supervisor.conf
T
2026-09-14 13:24:50 +08:00

18 lines
570 B
Plaintext

; 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