Files
aitsc/uwsgi.ini

55 lines
768 B
INI
Raw Permalink 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 = %(here)
# Python 虚拟环境
virtualenv = .venv
# uwsgi 启动文件
wsgi-file = run_dev.py
# Flask 应用实例
callable = app
# 主进程
master = true
# 进程数
processes = 4
# 线程数
threads = 2
# 监听地址和端口
http = 0.0.0.0:5000
# 后台运行
# daemonize = logs/uwsgi.log
# 日志文件
logto = logs/uwsgi.log
# pid文件用于停止服务
pidfile = logs/uwsgi.pid
# 自动重载
py-autoreload = 1
# 缓冲区大小
buffer-size = 32768
# 环境变量设置
env = FLASK_ENV=production
# 内存限制
memory-report = true
max-requests = 1000
max-requests-delta = 100
# 优雅重启
reload-on-rss = 2048
reload-on-as = 512
# 日志级别
log-maxsize = 50000000
log-backupname = logs/uwsgi.log.bak