重构:模块化项目结构,分离配置、路由、摄像头管理器,添加健康检查,更新Dockerfile和启动脚本

This commit is contained in:
Hao Wang
2025-12-07 02:07:14 +08:00
parent e991e0e7e6
commit c4735c0d3f
21 changed files with 761 additions and 5 deletions

21
run.py Normal file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env python3
"""
多摄像头监控系统启动脚本
"""
import os
import sys
from app import create_app
if __name__ == '__main__':
app = create_app()
from app.config import HOST, PORT, DEBUG
print("=" * 50)
print("🚀 多摄像头网格布局系统启动")
print(f"📡 访问地址: http://{HOST}:{PORT}")
print(f"🎥 摄像头数量: 6个")
print(f"🔧 调试模式: {DEBUG}")
print("=" * 50)
app.run(host=HOST, port=PORT, debug=DEBUG)