production runtime and mock removal
This commit is contained in:
1 parent
2ef3da7af5
commit
6480e503eb
55 files changed
+581
-540
No files matched your search
+16
-3
@@ -126,6 +126,9 @@ Kubernetes Secret:
|
||||
生产配置的事实来源是 ACK Secret/ConfigMap。不要通过静态页面或修改 Pod 文件来更新
|
||||
生产密钥;修改 Secret/ConfigMap 后滚动 Go Deployment。
|
||||
|
||||
Go API 在 PostgreSQL 生产模式启动时会校验即梦、EvoLink、百炼和 Seedance 的真实凭据;
|
||||
任一服务商缺少凭据都会拒绝启动,不会自动切换到占位或模拟生成。
|
||||
|
||||
## 探针与验收
|
||||
|
||||
- Web `/healthz`:Nginx 静态进程存活检查。
|
||||
@@ -154,6 +157,16 @@ curl https://你的域名/api/v1/openapi.json
|
||||
|
||||
## 本地开发
|
||||
|
||||
`npm run dev` 仍用于前端开发;`npm run build` 生成可静态托管的 `out/`。生产不运行
|
||||
Node Web 进程。需要完整联调时,同时启动 Go API,并用反向代理按
|
||||
与生产相同的路径规则将同一站点的后端请求转发给 Go。
|
||||
`npm run dev` 仍用于只开发前端;`npm run build` 生成可静态托管的 `out/`。需要完整联调
|
||||
或在服务器上使用仓库内编排时:
|
||||
|
||||
```bash
|
||||
cp .env.example .env.local
|
||||
# 将 ZHINIAN_DATA_BACKEND 保持为 postgres,并填写 DATABASE_URL、登录密钥和全部真实服务商凭据
|
||||
./scripts/deploy.sh
|
||||
```
|
||||
|
||||
根目录 Compose 会启动 `zhinian-web` 与 `zhinian-go-api`,挂载
|
||||
`deploy/nginx-compose.conf` 将 `/api`、`/uploads`、`/generated-results` 转发给 Go;Go
|
||||
内嵌 WorkerLoop,不再启动独立 Node Worker。ACK 生产仍使用上面的两镜像 + Ingress 拓扑,
|
||||
Web 镜像中的 `deploy/nginx.conf` 继续拒绝直接访问后端路径。
|
||||
Reference in new issue
Block a user