Files
blog/docs/上线检查单.md
T
wait4xandGLM-5.3 fb97d76ddb feat(launch): 命令面板+预发布验收+上线脚本(T1/T4/T5)
- T1 (op-gitea 车道):CommandPalette 三层(动作 theme/lang/rss+导航
  zh/en+Pagefind 搜索),Ctrl K 与 / 入口,document 级委托修 ClientRouter
  换页绑定失效;连带修复动态结果节点的 scoped CSS 失效潜伏 bug
- T4:preflight.sh 17 项全绿(产物/hreflang/双轨/微信 UA 200/
  responsive 11/halo 无恙/回滚前置);headless 渲染经 c4ai 复核
  (en 书评页全文+标注+ICP 实测在案)
- T5:launch.sh/rollback.sh 双向 dry-run 绿 + 上线检查单(linger/
  ESA 刷新/验证 URL/回滚路径)

验证: build 21 页 exit 0;command-palette+cmd-item zh/en 断言;
      bash scripts/preflight.sh ALL OK;launch/rollback dry-run exit 0

Spec: 2026-10-25_add-blog-launch
Co-authored-by: GLM-5.3
2026-10-25 09:52:50 +08:00

39 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 上线检查单(Phase 4 → 用户执行部分)
> 全部工程准备已完成(spec: 2026-10-25_add-blog-launch)。以下是上线动作与顺序,全程可秒级回滚。
## 前置确认(已由 preflight.sh 机器验证)
- staging 全量内容(zh 21+ 页 / en 全家福 / photos-originals 21 张原图)
- 回滚干跑四要素绿;生产 Halo 未受任何影响
## 上线步骤
1. `sudo loginctl enable-linger wait4x`(一次性:让 webhook 接收器开机自启)
2. `sudo bash infra/deploy/launch.sh --dry-run`(过一遍计划)
3. `sudo bash infra/deploy/launch.sh --exec`(切换 + 自动 nginx -t + reload)
4. 浏览器验证(手机+桌面各一轮):
- `https://wait4x.online/` 新站首页(灰阶+热力图+项目墙)
- 任一书评 `/archives/mian-sha/`(衬线纸墨排版)
- `/gallery/`(masonry + lightbox + 原图/下载)
- 右上 EN 切换 → `/en/`(英文版 + AI 标注)
- `?` 键盘帮助 / `~` 搜索 / Ctrl+K(若 T1 已合)
- 评论区可见(Artalk)
5. ESA 控制台刷新 `wait4x.online` 缓存(或等 TTL;HTML 建议规则短缓存)
6. ICP 页脚核对:陕ICP备2026014860号-1(zh/en 页都在)
## 回滚(任何不满意时)
```bash
sudo bash infra/deploy/rollback.sh --exec # 秒级回 Halo
```
静态目录与 Halo 互不干扰,可反复切换。
## 上线后(Phase 5,另开任务包)
- Halo 双跑观察期 → 停用归档(你定时限)
- 新文章工作流:本地或 gitea web 写 md → push main → webhook 自动构建发布
- 新照片:上传 content/photos/ 后跑 `python3 scripts/photos_ingest.py` 再 commit
- 翻译:新文章 push 后跑 `python3 scripts/translate/translate_posts.py`(幂等)