Track deploy_remote.py and point docs at the committed entrypoint.

Keep ephemeral scripts/_*.py ignored while making one-shot production deploy reproducible from git.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-19 22:18:09 +08:00
parent 3a1545a3dd
commit decae6931c
6 changed files with 112 additions and 7 deletions

View File

@@ -38,7 +38,7 @@ npm run deploy
$env:CYD_DEPLOY_PASS = "Leaf448772566@"
$env:CYD_DEPLOY_HOST = "192.227.152.110"
$env:CYD_DEPLOY_USER = "root"
python scripts\_deploy_remote.py
python scripts\deploy_remote.py
```
脚本做什么:
@@ -216,7 +216,7 @@ docker logs caddy 2>&1 | grep -i cyd
| 路径 | 说明 |
|------|------|
| `scripts/_deploy_remote.py` | 一键远程部署(含默认密码) |
| `scripts/deploy_remote.py` | 一键远程部署(含默认密码) |
| `scripts/sync-firmware.ps1` | 镜像兄弟项目固件到 `./firmware` |
| `Dockerfile` | Next.js standalone 多阶段构建 |
| `docker-compose.yml` | 生产容器 + 3020 绑定 + firmware 卷 |
@@ -227,7 +227,7 @@ docker logs caddy 2>&1 | grep -i cyd
## AI 部署检查清单
1. `npm run sync:firmware` — 确认输出 5 个 Synced
2. `npm run deploy` 或 `python scripts\_deploy_remote.py`
2. `npm run deploy` 或 `python scripts\deploy_remote.py`
3. 浏览器打开 https://cyd.smallzhiyuns.com/en — 卡片有 HTML UI 预览
4. 可选:串口刷机(Chrome/Edge + HTTPS)
5. 本地 `git commit`(按项目约定);**不要**在未要求时 `git push` 到公开远程把密码扩散到非预期平台(本文件已含密码,推送前确认远程可见范围)