时尚魔镜(Fashion Magic Mirror)虚拟试衣独立仓。Angular 18 + Ionic 8 + Capacitor 6。
git.fmode.cn/2205106/FashionMagicMirror(源仓致谢,业务代码保留)https://git.fmode.cn/fmode-18691770343/fmode-app-mirror(公开)https://app.fmode.cn/dev/zC4W4aVTCo/index.html(独立 Product ID zC4W4aVTCo,Nova Admin 已登记;勿发 fmode.cn/aipm-lesson/)npm ci(package-lock 已入库),peer deps 冲突才用 --legacy-peer-deps。www/(angular.json outputPath),不入库(.gitignore 已忽略)。fix: commit,说明根因。npx cap add。ng build --configuration production --base-href /dev/zC4W4aVTCo/ → cp www/index.html www/404.html(SPA fallback;构建后先核对 www/index.html 里 base href 正确再上传)。obs://nova-cloud/dev/zC4W4aVTCo/(逐文件指定目标键,禁目录递归 cp;html/css/js/图片带正确 content-type;-acl=public-read)。node /opt/data/git-repos/fmode-app/scripts/refresh-cdn.js(目录 https://app.fmode.cn/dev/zC4W4aVTCo/);禁用 refresh-fmode-cn.js(刷的是 fmode.cn 域名组,与本产品无关)。curl 验收 200 + 内容正确,才算上线成功。~/.fmode/config/user.json(0600)读取,用完即弃,不落盘。OBSUTIL_CONFIG 指向的配置文件间接使用,绝不写入本仓。git add <文件> 不用 git add .。git ls-remote 验证远端 SHA。