v1.0.1 — 部署脚本 & 环境兼容

- 新增 deploy.sh 一键部署:自动 venv/依赖/数据库/启动
- app.py 端口从环境变量 PORT 读取
This commit is contained in:
mac
2026-06-02 23:36:35 +08:00
parent 2d6eb4dc35
commit 082d7fa133
2 changed files with 58 additions and 1 deletions

3
app.py
View File

@@ -179,4 +179,5 @@ def api_user():
if __name__ == '__main__':
init_db()
app.config['TEMPLATES_AUTO_RELOAD'] = True
app.run(host='0.0.0.0', port=5058, debug=False)
port = int(os.environ.get('PORT', 5058))
app.run(host='0.0.0.0', port=port, debug=False)