30 lines
703 B
Plaintext
30 lines
703 B
Plaintext
[program:ball-tracking-server]
|
|
; Supervisor 配置文件
|
|
; 复制到 /etc/supervisor/conf.d/ 目录
|
|
|
|
; 基本配置
|
|
command=/path/to/your/ball-tracking/server-neo/venv/bin/gunicorn --config gunicorn.conf.py wsgi:app
|
|
directory=/path/to/your/ball-tracking/server-neo
|
|
user=www-data
|
|
autostart=true
|
|
autorestart=true
|
|
startretries=3
|
|
redirect_stderr=true
|
|
|
|
; 日志配置
|
|
stdout_logfile=/path/to/your/ball-tracking/server-neo/logs/supervisor.log
|
|
stdout_logfile_maxbytes=50MB
|
|
stdout_logfile_backups=5
|
|
|
|
; 环境变量
|
|
environment=PATH="/path/to/your/ball-tracking/server-neo/venv/bin",FLASK_ENV="production"
|
|
|
|
; 进程管理
|
|
killasgroup=true
|
|
stopasgroup=true
|
|
stopsignal=TERM
|
|
|
|
; 其他配置
|
|
priority=999
|
|
numprocs=1
|