fix: 修复部署问题

This commit is contained in:
Daniel
2026-04-07 17:01:13 +08:00
parent d22d6bb73b
commit 4879d2e8c5
15 changed files with 280 additions and 11 deletions

View File

@@ -0,0 +1,27 @@
# Center Dispatch Project
中央调度服务独立项目目录,仅负责:
- 设备接入(`WS /ws/edge/{device_id}`
- 上游 HTTP 下发任务(`POST /dispatch/generate`
- 上游 HTTP 下发运维指令(`POST /devices/{device_id}/command`
- 指令/任务状态查询(`GET /dispatch/{id}``GET /commands/{id}`
## Quick Start
```bash
cd center_dispatch
bash scripts/start.sh
```
停止:
```bash
bash scripts/stop.sh
```
## Notes
- 首次运行会生成 `.env`,请至少配置:
- `GIT_REPO_URL`(开启 `AUTO_PULL_LATEST=true` 时必填)
- OSS 相关配置(`OSS_ENABLED=true` 时必填)