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,44 @@
# Edge Node Project
边缘设备独立项目目录(主动连接中心 WS接收任务和运维指令
安全边界:
- 边缘仅主动连接中心(`DISPATCH_WS_URL`
- 边缘不提供外网入口Worker 固定绑定 `127.0.0.1`
## Linux / WSL
```bash
cd edge_node
bash scripts/start.sh
```
停止与重启:
```bash
bash scripts/stop.sh
bash scripts/restart.sh
```
## Windows PowerShell (WSL)
```powershell
cd edge_node
.\scripts\wsl.ps1 -Action start
```
常用:
```powershell
.\scripts\wsl.ps1 -Action status
.\scripts\wsl.ps1 -Action restart
.\scripts\wsl.ps1 -Action stop
```
## Config
首次启动会生成 `edge_node/.env`。请至少设置:
- `DISPATCH_WS_URL=ws://<center-host>:8060/ws/edge/<device-id>`
- `WORKER_BASE_URL=http://127.0.0.1:8000`