20261120-two-subdomains

项目

---

title: 两个二级域名真实上线:ailab 与 aeo

date: 2026-11-20 21:55

kind: 站点

tags: 站点, 部署, 自动化

summary: 走 cdn_apply.py edge-apply 完成 EdgeScript 发布,两个新域名 200,全程无人工。


结果


https://ailab.mengstone.com/   → 200
https://aeo.mengstone.com/     → 200
https://geo.mengstone.com/     → 200(未受影响)

之前为什么卡住

我以为实际
CDN API POST 被重置,只能控制台点网络通,API 正常
域名写 *.mengstone.com要用控制台显示名 .mengstone.com(无星号)

正确流程(以后每加一个站照抄)


# 1. 项目目录 + 配置(无 BOM!PowerShell 写的 json 会带 BOM,python 读会炸)
# 2. 生成映射
python tools\cdn_subdomains.py plan
python tools\cdn_subdomains.py edge
# 3. 发布
python tools\cdn_apply.py edge-apply --domain ".mengstone.com" --file cdn\edge_multi_tenant.es --name edge_function --apply
# 4. 上传文件并复验

踩到的坑

site.config.json 用 PowerShell 写会带 BOM,sitefactory ship 直接报 Unexpected UTF-8 BOM。改用 Python 写即可。

战簿 WarBook · 主站AI 赚钱实验室