Files
JayuCloud/docs/运维配置与集成说明.md
T

19 lines
1.4 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.
# 运维配置与集成说明
## 双端生产隔离
设计师端和店务端分别使用独立的后端、Web、小程序、数据库和 Nacos namespace:
| 端侧 | 后端 | Web | Nacos namespace | 数据库 |
| --- | --- | --- | --- | --- |
| 设计师端 | `JC-ArtList-Core`、`JC-ArtList-Gateway` | `JC-ArtList-Frontend`、`JC-ArtList-WeChat` | `jayucloud-artlist` | `jayucloud_artlist` |
| 店务端 | `JC-Salon-Core`、`JC-Salon-Gateway` | `JC-Salon-Frontend`、`JC-Salon-WeChat` | `jayucloud-salon` | `jayucloud_salon` |
服务注册名为 `jc-artlist-core`、`jc-artlist-gateway`、`jc-salon-core`、`jc-salon-gateway`。设计师 Web/小程序不再包含管理入口;店务 Web 仅保留管理工作流。
生产 Nacos 配置源位于 `nacos/namespaces/prod/`,发布流程为 `.gitea/workflows/publish-nacos.yml`。Nacos 元数据库使用 `192.168.10.200:3306/nacos`,业务数据库使用 `192.168.10.200:6033` 对应业务库。Redis、RabbitMQ 和对象存储的生产连接信息通过环境变量或 Gitea Secrets 注入,不在仓库提交敏感值。
两套数据库空库脚本位于 `scripts/sql/migrations/20260825-双端独立数据库/`。生产执行前须先核对目标库、账号和备份状态;本次改造不迁移既有生产数据。
职责裁剪迁移位于 `scripts/sql/migrations/20260825-双端职责裁剪/`,必须在对应后端裁剪发布完成、数据库备份确认后执行。