From 357bea8285474d12f3e2db261a132a08e2a4a456 Mon Sep 17 00:00:00 2001 From: sjr666666 <3283655504@qq.com> Date: Thu, 1 Oct 2026 07:57:14 +0800 Subject: [PATCH] docs(zh): add the missing Startup Modes section to README_zh (#6129) Mirror the English README's Startup Modes section (introduced and refined in #5995) into the Chinese version: the startup mode matrix, the stop/restart commands, and the SKIP_FRONTEND_BUILD opt-in note. README_zh previously had no documented way to run services in daemon or production mode or to stop/restart them. Co-authored-by: sjr666666 <204130665+sjr666666@users.noreply.github.com> --- README_zh.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README_zh.md b/README_zh.md index 34018732f1..ac57847627 100644 --- a/README_zh.md +++ b/README_zh.md @@ -319,6 +319,22 @@ make down # 停止并移除容器 5. **访问地址**:http://localhost:2026 +#### 启动模式 + +DeerFlow 将 Agent 运行时内嵌在 Gateway API 中运行。开发模式支持热更新;生产模式使用预构建的前端。 + +| | **本地前台** | **本地守护进程** | **Docker 开发** | **Docker 生产** | +|---|---|---|---|---| +| **开发模式** | `./scripts/serve.sh --dev`
`make dev` | `./scripts/serve.sh --dev --daemon`
`make dev-daemon` | `./scripts/docker.sh start`
`make docker-start` | — | +| **生产模式** | `./scripts/serve.sh --prod`
`make start` | `./scripts/serve.sh --prod --daemon`
`make start-daemon` | — | `./scripts/deploy.sh`
`make up` | + +| 操作 | 本地 | Docker 开发 | Docker 生产 | +|---|---|---|---| +| **停止** | `./scripts/serve.sh --stop`
`make stop` | `./scripts/docker.sh stop`
`make docker-stop` | `./scripts/deploy.sh down`
`make down` | +| **重启** | `./scripts/serve.sh --restart [flags]` | `./scripts/docker.sh restart` | — | + +`make start` 与 `make start-daemon` 每次运行都会用 `next build` 重新构建前端。如需复用上一次的构建结果,可传入 `SKIP_FRONTEND_BUILD=1`(或在直接调用 `./scripts/serve.sh --prod` 时附加 `--skip-frontend-build`)。该选项为可选行为:当 `frontend/.next` 中没有已完成的构建时会快速失败。 + #### LangGraph Studio(可选) 默认的 `make dev` 拓扑使用 DeerFlow 内嵌于 Gateway 的运行时,无需 LangGraph Studio。