Files
jackyu66gitandCursor e90fac94cf docs: DEPLOY 补充 MySQL/PostgreSQL 分工说明
指向 monorepo 完整 Ubuntu 部署文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 00:46:59 +08:00

47 lines
1.1 KiB
Markdown
Raw Permalink 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.
# 愈心谷小程序部署说明
完整文档(含 **Ubuntu + MySQL 并存**、PostgreSQL 安装、Go API、H5、Nginx、微信后台):
**[`digital-psychology/docs/DEPLOY-MINI-PROGRAM-H5.md`](../digital-psychology/docs/DEPLOY-MINI-PROGRAM-H5.md)**
---
## 数据库分工(重要)
| 业务 | 数据库 |
|------|--------|
| 咨询 / 测评 / 登录(miniapp | **MySQL**(已有) |
| 愈心魔方 H5 | **PostgreSQL**Go API 专用,需另装) |
---
## 本仓库快速步骤
### 1. 确认 H5 已部署
生产 H5 必须可访问:
```text
https://h5.yuxingu.com.cn/psy/?mp=1
```
地址配置:`util/yxgConfig.js`
### 2. HBuilderX 发行
1. 打开本项目
2. **发行 → 小程序-微信**
3. 微信开发者工具打开 `unpackage/dist/build/mp-weixin/`
4. 上传体验版 / 提交审核
### 3. 微信后台
- **业务域名**`h5.yuxingu.com.cn`
- **request 合法域名**`miniapp.yuxingu.com.cn``h5.yuxingu.com.cn`
### 4. 验收
- 首页紫色「愈心魔方」条 → 切 Tab 加载 H5
- 底部 Tab:**首页 | 愈心魔方 | 心理咨询 | 心理测评 | 我的**
- 咨询/测评仍正常(`miniapp.yuxingu.com.cn`