记录后端和网页前端生产更新
This commit is contained in:
@@ -1251,3 +1251,11 @@ rtk node -e "const fs=require('fs');const path=require('path');let n=0;function
|
||||
- 已完成:HTTP 80 已包含三个域名并统一 301 到 HTTPS。
|
||||
- 当前可验证状态:正常证书校验下,`https://yunail.art/`、`https://www.yunail.art/`、`https://salon.yunail.art/` 和 `https://salon.yunail.art/health/check` 均返回预期内容。
|
||||
- 后续关注:本次证书为手动 DNS-01 签发,后续续期需要保留或重新添加 `_acme-challenge` TXT 记录,或补齐阿里云 DNS API 凭据改为自动 DNS-01。
|
||||
|
||||
## 2026-07-15 后端与网页前端生产更新当前状态
|
||||
|
||||
- 已完成:生产后端和网页前端已更新到 release `20260715-180706`。
|
||||
- 已完成:3 个 Core 节点和 3 个 Gateway 节点均已重新发布并通过健康检查。
|
||||
- 已完成:Web current 已切换到 `/opt/jy-artist-frontend/releases/20260715-180706/dist`,设计师域名和店务域名均可访问。
|
||||
- 当前可验证状态:`https://yunail.art/health/check` 和 `https://salon.yunail.art/health/check` 均显示 `jy-gateway` 与 `jy-core` 为 3/3 healthy;`https://yunail.art/api/shop/list` 返回业务 JSON。
|
||||
- 本次未变更:生产数据库、Nacos 配置、证书、域名解析和小程序。
|
||||
|
||||
@@ -602,6 +602,15 @@
|
||||
- 公网 HTTPS 验证:正常证书校验下,`https://yunail.art/` 和 `https://www.yunail.art/` 返回设计师端入口,`https://salon.yunail.art/` 返回店务端入口,`https://salon.yunail.art/health/check` 返回 Jayu Cloud gateway JSON。
|
||||
- 结论:证书过期问题已解除;店务网页端已从 `yunail.art/jy-salon-front/` 切换为独立生产域名 `salon.yunail.art`。
|
||||
|
||||
## 2026-07-15 后端与网页前端生产更新验证
|
||||
|
||||
- 构建验证:`JY-Core`、`JY-Gateway`、`JY-Artist-Frontend` 和 `JY-Salon-Front` 构建完成,前端构建仅出现 chunk size warning。
|
||||
- 发布验证:Core 已发布到 `JY-core01`、`JY-core02`、`JY-core03`;Gateway 已发布到 `JY-gateway01`、`JY-gateway02`、`JY-gateway03`;Web current 已切换到 `/opt/jy-artist-frontend/releases/20260715-180706/dist`。
|
||||
- 后端健康:3 个 Core 本机健康检查均返回 `JY-Core is running`;最终公网 Gateway 健康检查显示 `jy-gateway` 和 `jy-core` 均为 3/3 healthy。
|
||||
- 公网 HTTPS 验证:`https://yunail.art/`、`https://www.yunail.art/`、`https://salon.yunail.art/`、`https://salon.yunail.art/health/check` 均返回 200。
|
||||
- API 冒烟:`https://yunail.art/api/shop/list` 返回 200,响应为业务 JSON。
|
||||
- 未执行项:本次未执行数据库初始化、数据库重置、旧 JAR 清理和小程序发布。
|
||||
|
||||
## 2026-07-14 前端生产重发布与 Nginx 配置复核
|
||||
|
||||
- 构建验证:`JY-Artist-Frontend` 和 `JY-Salon-Front` 均已执行 `npm run build`,两端生产构建通过;设计师端存在 Vite 大 chunk 警告,未影响产物生成。
|
||||
|
||||
+1
-1
@@ -768,7 +768,7 @@ $env:NACOS_USERNAME='nacos'
|
||||
- 设计师端域名:`yunail.art` 和 `www.yunail.art`。
|
||||
- 店务端域名:`salon.yunail.art`。
|
||||
- 静态资源发布目录:`/opt/jy-artist-frontend/releases/<timestamp>/dist`。
|
||||
- 当前生效入口:`/opt/jy-artist-frontend/current`,由发布流程切换到最新 release。
|
||||
- 当前生效入口:`/opt/jy-artist-frontend/current`,由发布流程切换到最新 release;2026-07-15 已切换到 `/opt/jy-artist-frontend/releases/20260715-180706/dist`。
|
||||
- 设计师网页端入口:`https://yunail.art/`,Nginx 根目录指向 `/opt/jy-artist-frontend/current`,SPA 兜底到 `/index.html`。
|
||||
- 店务网页端入口:`https://salon.yunail.art/`,Nginx 根目录指向 `/opt/jy-artist-frontend/current/jy-salon-front`,SPA 兜底到 `/index.html`;同时必须配置 `location ^~ /jy-salon-front/`,以 `/opt/jy-artist-frontend/current` 为根目录映射带前缀的店务静态资源。
|
||||
- 后端健康检查:`/health/check` 必须反向代理到网关 upstream `jayu_cloud_gateway`,不能落入前端 SPA 兜底。
|
||||
|
||||
@@ -97,6 +97,14 @@
|
||||
- 验证方式:`nginx -t` 通过并 reload 后保持 `nginx.service active`;公网 HTTPS 正常校验下 `https://yunail.art/` 和 `https://www.yunail.art/` 返回设计师端入口,`https://salon.yunail.art/` 返回店务端入口,`https://salon.yunail.art/health/check` 返回 Jayu Cloud gateway JSON。
|
||||
- 后续事项:本次为手动 DNS-01 签发,后续续期前需保留或重新添加 `_acme-challenge` TXT 记录,或补齐阿里云 DNS API 凭据改为自动 DNS-01。
|
||||
|
||||
## 2026-07-15 后端与网页前端生产更新
|
||||
|
||||
- 变更原因:用户确认当前代码已有更新,需要将后端和网页前端同步到生产环境。
|
||||
- 处理方式:基于当前仓库构建 `JY-Core.jar`、`JY-Gateway.jar`、`JY-Artist-Frontend` 和 `JY-Salon-Front`,生成 release `20260715-180706`;发布到 3 个 Core 节点、3 个 Gateway 节点和 Web/Nginx 节点。
|
||||
- 执行边界:本次使用当前初始化后的生产库,不执行数据库初始化、不重置数据库、不清理旧 JAR、不发布小程序。
|
||||
- 影响范围:后端运行 JAR、设计师网页端静态资源、店务网页端静态资源;不修改 Nacos 配置、数据库结构和生产证书。
|
||||
- 验证方式:3 个 Core 本机 `/health/check` 均成功;3 个 Gateway 本机 `/health/check` 均成功;公网 `https://yunail.art/`、`https://www.yunail.art/`、`https://salon.yunail.art/`、`https://salon.yunail.art/health/check` 和 `https://yunail.art/api/shop/list` 均返回 200;最终 Gateway/Core 注册实例均为 3/3 healthy。
|
||||
|
||||
## 2026-07-10 MessageHub SPUG 短信模板与兜底发送
|
||||
|
||||
- 变更原因:验证码短信需要在保留阿里云通道的同时接入 SPUG 模板,并按设计师端、店务端拆分 MessageHub 来源系统密钥;重发时需要根据上一条 MessageHub 状态决定沿用或切换通道。
|
||||
|
||||
Reference in New Issue
Block a user