release: v2.1.0 - Prompt管理系统、页脚优化、图标修复
This commit is contained in:
15
wsgi.py
Normal file
15
wsgi.py
Normal 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)
|
||||
Reference in New Issue
Block a user