feat: 添加v2.2.0部署脚本和工具文件

This commit is contained in:
Jowe
2025-12-31 01:33:47 +08:00
parent f5f73025d7
commit 4d3163575c
24 changed files with 5428 additions and 1 deletions

15
wsgi.py Normal file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python3
"""
生产环境应用入口
用于gunicorn启动
"""
import os
from app import create_app
# 创建应用实例
app = create_app(os.getenv('FLASK_ENV', 'production'))
if __name__ == '__main__':
# 这个分支仅用于直接运行脚本测试
# 生产环境应该使用 gunicorn
app.run(host='0.0.0.0', port=5000, debug=False)