chore: deploy ai toy patent to vps
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
"kind": "tool",
|
"kind": "tool",
|
||||||
"created": "2026-05-18",
|
"created": "2026-05-18",
|
||||||
"urls": [
|
"urls": [
|
||||||
|
{ "type": "app", "url": "https://ai-toy.kang-kang.com", "label": "VPS 生产" },
|
||||||
{ "type": "app", "url": "http://localhost:4560", "label": "本地 dev" }
|
{ "type": "app", "url": "http://localhost:4560", "label": "本地 dev" }
|
||||||
],
|
],
|
||||||
"credentials": [
|
"credentials": [
|
||||||
@@ -23,7 +24,8 @@
|
|||||||
"auto": true
|
"auto": true
|
||||||
},
|
},
|
||||||
"stack": [
|
"stack": [
|
||||||
"Next.js + GPT + Seedance"
|
"Next.js + GPT + Seedance",
|
||||||
|
"Docker Compose + Coolify Traefik"
|
||||||
],
|
],
|
||||||
"ownership": "personal"
|
"ownership": "personal"
|
||||||
}
|
}
|
||||||
|
|||||||
15
RULES.md
15
RULES.md
@@ -6,10 +6,13 @@
|
|||||||
- 首次依赖装好:`npm install --legacy-peer-deps`(next 15 + react 19 有 peer 警告)
|
- 首次依赖装好:`npm install --legacy-peer-deps`(next 15 + react 19 有 peer 警告)
|
||||||
|
|
||||||
## 部署事实
|
## 部署事实
|
||||||
- 平台:本地开发(未上 VPS)
|
- 平台:个人 VPS `76.13.31.179`,Docker Compose,接入现有 Coolify Traefik
|
||||||
- 发布状态:本地可用,仅个人使用
|
- 发布状态:VPS 生产已发布,仅个人使用
|
||||||
- 主站 / 前端:http://localhost:4560
|
- 服务名 / 容器名:`ai-toy-patent-workflow`
|
||||||
- API / 后端:内置 Next.js API Route(同端口)
|
- 服务器路径:`/opt/ai-toy-patent-workflow`
|
||||||
|
- 主站 / 前端:https://ai-toy.kang-kang.com
|
||||||
|
- 本地 dev:http://localhost:4560
|
||||||
|
- API / 后端:内置 Next.js API Route(生产同域名)
|
||||||
- 文档 / 解析:无
|
- 文档 / 解析:无
|
||||||
- 管理后台:无
|
- 管理后台:无
|
||||||
|
|
||||||
@@ -17,8 +20,10 @@
|
|||||||
- 无登录系统(本地工具)
|
- 无登录系统(本地工具)
|
||||||
|
|
||||||
## 元数据回写清单
|
## 元数据回写清单
|
||||||
- 上 VPS / 加域名时,更新 `.project.json.urls` + 本节
|
- 改公网域名或迁移部署时,更新 `.project.json.urls` + 本节
|
||||||
- 数据持久化在 `data/`(gitignored),不入库
|
- 数据持久化在 `data/`(gitignored),不入库
|
||||||
|
- VPS 数据持久化在 `/opt/ai-toy-patent-workflow/data`
|
||||||
|
- VPS 生产环境变量在 `/opt/ai-toy-patent-workflow/deploy/.env.production`,不入库
|
||||||
|
|
||||||
## 环境变量
|
## 环境变量
|
||||||
- `OPENAI_API_KEY` — GPT API Key;文本/结构化/图片生成统一走 GPT 最高规格配置
|
- `OPENAI_API_KEY` — GPT API Key;文本/结构化/图片生成统一走 GPT 最高规格配置
|
||||||
|
|||||||
Reference in New Issue
Block a user