提示词专家
This commit is contained in:
39
uwsgi.ini
Normal file
39
uwsgi.ini
Normal file
@@ -0,0 +1,39 @@
|
||||
[uwsgi]
|
||||
# 项目根目录
|
||||
chdir = /path/to/your/project # 替换为你的项目路径,例如 D:/wxxcx/tsccc
|
||||
|
||||
# Python 虚拟环境
|
||||
virtualenv = .venv # 相对于项目根目录的虚拟环境路径
|
||||
|
||||
# uwsgi 启动文件
|
||||
wsgi-file = app.py
|
||||
|
||||
# Flask 应用实例
|
||||
callable = app
|
||||
|
||||
# 主进程
|
||||
master = true
|
||||
|
||||
# 进程数
|
||||
processes = 4
|
||||
|
||||
# 线程数
|
||||
threads = 2
|
||||
|
||||
# 监听地址和端口
|
||||
http = 0.0.0.0:5000
|
||||
|
||||
# 后台运行
|
||||
# daemonize = uwsgi.log
|
||||
|
||||
# 日志文件
|
||||
logto = logs/uwsgi.log
|
||||
|
||||
# pid文件,用于停止服务
|
||||
pidfile = uwsgi.pid
|
||||
|
||||
# 自动重载
|
||||
py-autoreload = 1
|
||||
|
||||
# 缓冲区大小
|
||||
buffer-size = 32768
|
||||
Reference in New Issue
Block a user