From 6963344fe8315b6f69d669e9a307b94774a4babd Mon Sep 17 00:00:00 2001 From: Sycun <165354365+Sycun@users.noreply.github.com> Date: Fri, 13 Nov 2026 11:17:28 +0800 Subject: [PATCH] docs(update): explain how to verify the running build after an update --- docs/en-US/deployment.md | 7 ++++--- docs/zh-CN/deployment.md | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/en-US/deployment.md b/docs/en-US/deployment.md index 8f5ac142..074da0bd 100644 --- a/docs/en-US/deployment.md +++ b/docs/en-US/deployment.md @@ -91,9 +91,10 @@ instead of forcing. See [the developer guide](developer-guide.md) for the full s On macOS and Linux, when started from the `cyberstrike-ai` binary alongside its config, the console defaults to switching to the new binary after a successful build. The old service remains available -during the build. Connections briefly drop at the switch and the page reloads when the new service -answers. Sign in again afterward because sessions live in memory. A supervisor is still useful for -starting at boot and recovering from crashes. If you defer the switch or replace the binary from the +during the build. Connections briefly drop at the switch. When the new service answers, the page +reloads and reuses the current login session if it is still valid. Under **One-click update**, the +**Running build** field shows the commit of the binary serving requests. A supervisor is still useful +for starting at boot and recovering from crashes. If you defer the switch or replace the binary from the CLI, the console offers **Restart now** on installations that support the switch. The update source is a single repository address in the `update` section of `config.yaml` (`repo`), diff --git a/docs/zh-CN/deployment.md b/docs/zh-CN/deployment.md index 6f499fa4..befa81a8 100644 --- a/docs/zh-CN/deployment.md +++ b/docs/zh-CN/deployment.md @@ -193,6 +193,7 @@ SQLite 热备份时最好先停止服务,或至少复制 `*.db`、`*.db-wal` 在 macOS/Linux 上,从配置文件同目录的 `cyberstrike-ai` 启动时,点击「一键更新」后,控制台在构建成功时自动切换到新二进制。 构建期间旧服务继续提供服务;切换时连接会短暂中断,页面在新服务应答后自动刷新并沿用仍然有效的登录会话。 +刷新后可以在「一键更新」的「运行中的构建」字段核对当前服务的提交号。 这一步不依赖 systemd 或 launchd;长期部署仍建议用守护进程做开机自启和异常恢复。通过 API 或命令行换过 二进制后,可以在支持自动切换的安装上用控制台的「立即重启服务」启用磁盘上的版本。