docs: record t636 production deployment
This commit is contained in:
+15
@@ -2259,3 +2259,18 @@
|
||||
- 迁移一致性:`makemigrations --check --dry-run` 显示 No changes detected;旧本机
|
||||
MySQL `43.128.3.240` 拒绝连接,仅产生迁移历史检查 warning。待提交后按部署文档备份、
|
||||
`migrate` 并保持线上 `.env` 兜底为 `off`。
|
||||
|
||||
## 2026-07-28 生产部署:T-636 客户端订阅策略 django-admin 运营开关
|
||||
|
||||
- 发布:本地 revision `2171968` 以归档部署到 `185.216.248.75`;归档 SHA256 为
|
||||
`f9c386125226813a5f679487832bda7f28474428bfe173f8a2a53b5e84f08a17`,远端校验一致。
|
||||
部署前备份为 `/root/cmhub_deploy_backups/cmhub-before-t636-20260728_154417`,同步时
|
||||
保留线上 `.env`、`.secrets`、`media`、`staticfiles` 和部署目录。
|
||||
- 数据库:发布前 `migrate --plan` 仅列出 `licensing.0006`;实际 `migrate --noinput`
|
||||
成功创建策略和审计表。迁移不预置记录,线上检查为 `policy_rows=0`、`audit_rows=0`,
|
||||
所以现有 `.env` `off` 策略保持原样。
|
||||
- 重启与验收:仅重启 `cmhub-web`、`cmhub-generate`;两者、Nginx 和 MySQL 8.4 均
|
||||
active,66 个图片 worker 未重启且保持 active。公网版本检查接口 HTTP 200、
|
||||
`Cache-Control: no-store`,`client_policy` 仍为 false/false,带原 `.env` 时间;
|
||||
`.deploy_revision=2171968`。生产代码已确认调用
|
||||
`get_published_client_subscription_policy()`。
|
||||
|
||||
Reference in New Issue
Block a user