dy-dashboard/vault/知识库/工作指南/训练记录/2026-09-05-新品图片部署保护.md
2026-10-28 11:14:17 +08:00

14 lines
1.0 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.

# 2026-09-05-新品图片部署保护 <!-- project: path:/home/gxd/.openclaw/workspace/dy-dashboard -->
### 1. 主题
**旭东 → OpenClaw:**
> 就按照你说的来,后续部署时,应将static/uploads/new_products 纳入独立备份和同步保护范围,避免再次出现“数据库路径存在,图片文件被删除”的情况。
**OpenClaw 响应:**
已完成部署流程加固。`pack_deploy_full.sh` 的代码同步已排除 `static/uploads/new_products`,全量部署前会单独备份新品图片目录,部署后会校验图片数量不少于部署前数量;`upgrade_full.sh` 和 `upgrade_prod.sh` 的代码同步同样排除新品图片目录,并在升级前建立独立备份;`backup.sh` 新增新品图片独立备份文件。
四个脚本均通过 `bash -n` 语法检查,关键保护项和 `git diff --check` 验证通过。本次仅修改部署脚本,没有执行生产部署,没有修改业务数据。Git提交:`fd531ae`。
<!-- project: path:/home/gxd/.openclaw/workspace/dy-dashboard -->