Files
aitsc/uwsgi.ini
2025-02-23 09:07:52 +08:00

39 lines
610 B
INI
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[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