Implement three divination modes, learn pages, and PM2 deploy on port 3130.

Add liuyao/bazi/combined flows with shared calc and AI infrastructure, 64-gua learn routes, and update Ubuntu PM2 deployment docs for port 3130.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-10 20:19:49 +08:00
parent d141623070
commit fff77dac3f
41 changed files with 2590 additions and 385 deletions
+12 -12
View File
@@ -16,7 +16,7 @@
┌────────▼────────┐
│ PM2 │
│ zhimingge │ :3000
│ zhimingge │ :3130
└────────┬────────┘
┌────────▼────────┐
@@ -38,7 +38,7 @@
| 安装目录 | `/opt/zhimingge` |
| 进程管理 | PM2 |
| 构建模式 | Next.js `output: "standalone"` |
| 默认端口 | 3000 |
| 默认端口 | **3130** |
---
@@ -172,8 +172,8 @@ OPENAI_API_KEY=你的密钥
OPENAI_BASE_URL=https://op.bz121.com/v1
OPENAI_MODEL=huihui_ai/gemma-4-abliterated:e4b
# 服务端口
PORT=3000
# 服务端口(与 PM2 ecosystem.config.cjs 一致)
PORT=3130
NODE_ENV=production
```
@@ -247,7 +247,7 @@ pm2 delete zhimingge # 删除进程
```bash
cd /opt/zhimingge/.next/standalone
PORT=3000 node server.js
PORT=3130 node server.js
```
对应 PM2 配置片段:
@@ -258,7 +258,7 @@ PORT=3000 node server.js
cwd: "/opt/zhimingge/.next/standalone",
script: "server.js",
env: {
PORT: 3000,
PORT: 3130,
NODE_ENV: "production",
},
}
@@ -269,11 +269,11 @@ PORT=3000 node server.js
### 7.6 验证
```bash
curl -I http://127.0.0.1:3000
curl -I http://127.0.0.1:3130
# 应返回 HTTP/1.1 200
```
浏览器访问:`http://服务器IP:3000`
浏览器访问:`http://服务器IP:3130`
---
@@ -291,7 +291,7 @@ server {
server_name zhimingge.example.com;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_pass http://127.0.0.1:3130;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
@@ -359,8 +359,8 @@ ufw allow 80
ufw allow 443
ufw enable
# 若不用 Nginx,直接暴露 3000
ufw allow 3000
# 若不用 Nginx,直接暴露 3130
ufw allow 3130
```
---
@@ -446,7 +446,7 @@ pm2 save && pm2 startup
cd /opt/zhimingge && git pull && pnpm install && pnpm run build && pm2 restart zhimingge
# 查看状态
pm2 status && curl -I http://127.0.0.1:3000
pm2 status && curl -I http://127.0.0.1:3130
```
---
+1 -1
View File
@@ -341,7 +341,7 @@ OPENAI_MODEL=huihui_ai/gemma-4-abliterated:e4b
| `OPENAI_API_KEY` | 是 | — | AI 接口密钥 |
| `OPENAI_BASE_URL` | 否 | `https://op.bz121.com/v1` | API 地址 |
| `OPENAI_MODEL` | 否 | `huihui_ai/gemma-4-abliterated:e4b` | 模型名 |
| `PORT` | 否 | `3000` | 服务端口 |
| `PORT` | 否 | `3130` | 服务端口 |
| `NODE_ENV` | 否 | `production` | 运行环境 |
| `UMAMI_ID` | 否 | — | 访问统计(可选,可不用) |
| `UMAMI_URL` | 否 | — | 统计脚本地址(可选) |