完善页面

This commit is contained in:
2025-08-11 09:34:29 +08:00
parent 0ac375eb50
commit d42cefd9ca
4 changed files with 306 additions and 165 deletions

13
app.py
View File

@@ -76,6 +76,15 @@ if __name__ == '__main__':
logger.info("=== BigDataTool 启动 ===")
logger.info("应用架构:模块化")
logger.info("支持功能:单表查询、分表查询、多主键查询、配置管理、查询历史")
logger.info("访问地址http://localhost:5000")
# 从环境变量获取配置支持Docker部署
import os
host = os.getenv('FLASK_HOST', '0.0.0.0')
port = int(os.getenv('FLASK_PORT', 5000))
debug = os.getenv('FLASK_DEBUG', 'True').lower() == 'true'
logger.info(f"访问地址http://{host}:{port}")
logger.info("API文档/api/* 路径下的所有端点")
app.run(debug=True, port=5000)
logger.info(f"配置信息 - 主机: {host}, 端口: {port}, 调试: {debug}")
app.run(debug=debug, host=host, port=port)