重构:模块化项目结构,分离配置、路由、摄像头管理器,添加健康检查,更新Dockerfile和启动脚本
This commit is contained in:
21
run.py
Normal file
21
run.py
Normal 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)
|
||||
Reference in New Issue
Block a user