|
|
@@ -34,7 +34,8 @@ def main():
|
|
|
print("🚀 启动交易策略监控面板")
|
|
|
print("=" * 60)
|
|
|
print(f"📁 数据库路径: {db_path}")
|
|
|
- print(f"🌐 访问地址: http://127.0.0.1:5000")
|
|
|
+ print(f"🌐 本地访问: http://127.0.0.1:5000")
|
|
|
+ print(f"🌐 公网访问: http://0.0.0.0:5000")
|
|
|
print("=" * 60)
|
|
|
|
|
|
# 检查数据库是否存在
|
|
|
@@ -47,7 +48,7 @@ def main():
|
|
|
dashboard = TradingDashboard(str(db_path))
|
|
|
|
|
|
try:
|
|
|
- dashboard.run(host='127.0.0.1', port=5000, debug=False)
|
|
|
+ dashboard.run(host='0.0.0.0', port=5000, debug=False)
|
|
|
except KeyboardInterrupt:
|
|
|
print("\n👋 监控面板已停止")
|
|
|
except Exception as e:
|