CI/CD Pipeline / build-push (ljwx-admin) (push) Blocked by required conditions
CI/CD Pipeline / build-push (ljwx-bigscreen) (push) Blocked by required conditions
CI/CD Pipeline / build-push (ljwx-boot) (push) Blocked by required conditions
CI/CD Pipeline / update-deploy (push) Blocked by required conditions
CI/CD Pipeline / security-scan (push) Successful in 54s
CI/CD Pipeline / test-build-boot (push) Successful in 5m15s
CI/CD Pipeline / build-pr (ljwx-admin) (push) Has been skipped
CI/CD Pipeline / build-pr (ljwx-bigscreen) (push) Has been skipped
CI/CD Pipeline / build-pr (ljwx-boot) (push) Has been skipped
CI/CD Pipeline / test-admin (push) Successful in 7m16s
CI/CD Pipeline / test-bigscreen (push) Failing after 29m38s
## 主要变更 ### 1. API 架构分析文档 - 创建 api-architecture-analysis.md:深度分析当前 API 架构混乱问题 - 发现核心问题:93% API 无版本号,命名规范混乱,功能重复 - 提供渐进式和激进式两种重构方案 ### 2. OpenAPI 契约维护文档 - 创建 openapi-maintenance-workflow.md:OpenAPI 维护流程规范 - 创建 v1-api-contract-validation.md:V1 API 契约验证报告 - 创建 v1-api-quick-reference.md:V1 API 快速参考指南 ### 3. ljwx-bigscreen API 迁移 - 修复 BigscreenApiV1Controller 中 userId 参数 required 问题 - 更新 ljwx-bigscreen 调用正确的 API 路径 - 修复 session key 不一致问题(customer_id vs customerId) - 添加 boot_api_client 统一 HTTP 客户端 ### 4. 日志和配置优化 - 添加 StaticFileFilter 过滤 304 日志 - 修复 SQLAlchemy ROLLBACK 警告 - 优化 ljwx-bigscreen 日志格式 ### 5. 数据库迁移 - 添加 V1.9.0 Flyway 迁移脚本(geofence alert 字段) - 创建本地数据库迁移指南 ### 6. Claude Code 配置 - 添加 context-guard.md 和 task-type-detector.md - 创建 QUICK_REFERENCE.md 决策流程图 - 优化 CLAUDE.md 文档管理规范 ## 下一步 - 启动激进式 API 重构 - 统一 ljwx-admin、ljwx-watch、ljwx-phone API - 维护 OpenAPI 契约 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
39 lines
935 B
Python
39 lines
935 B
Python
"""
|
|
应用启动入口
|
|
"""
|
|
import os
|
|
from dotenv import load_dotenv
|
|
|
|
# 加载环境变量
|
|
load_dotenv()
|
|
|
|
from app import create_app
|
|
from app.extensions import socketio
|
|
|
|
# 获取配置环境
|
|
config_name = os.getenv('FLASK_ENV', 'development')
|
|
app = create_app(config_name)
|
|
|
|
if __name__ == '__main__':
|
|
# 开发环境使用 SocketIO 运行
|
|
host = os.getenv('APP_HOST', '0.0.0.0')
|
|
port = int(os.getenv('APP_PORT', 5225))
|
|
debug = os.getenv('DEBUG', 'True') == 'True'
|
|
|
|
# 热加载配置
|
|
use_reloader = os.getenv('USE_RELOADER', 'True') == 'True'
|
|
|
|
print(f"🚀 Starting ljwx-bigscreen-lite on http://{host}:{port}")
|
|
print(f"📝 Environment: {config_name}")
|
|
print(f"🔧 Debug mode: {debug}")
|
|
print(f"🔄 Hot reload: {use_reloader}")
|
|
|
|
socketio.run(
|
|
app,
|
|
host=host,
|
|
port=port,
|
|
debug=debug,
|
|
use_reloader=use_reloader,
|
|
allow_unsafe_werkzeug=True
|
|
)
|