fix: 启用gunicorn守护进程模式,避免前台运行
- 修改gunicorn_config.py中daemon=True - 解决./manage.sh restart后程序在前台运行的问题 - 应用将在后台运行,不会被Ctrl+C中断
This commit is contained in:
@@ -28,8 +28,8 @@ loglevel = "info"
|
||||
# 进程名称
|
||||
proc_name = "zjpb_app"
|
||||
|
||||
# 守护进程模式(设置为False,由systemd或supervisor管理)
|
||||
daemon = False
|
||||
# 守护进程模式(后台运行)
|
||||
daemon = True
|
||||
|
||||
# PID文件
|
||||
pidfile = "logs/gunicorn.pid"
|
||||
|
||||
Reference in New Issue
Block a user