docs(update): explain how to verify the running build after an update

This commit is contained in:
Sycun 2026-11-13 11:17:28 +08:00
parent 4f2af3371b
commit 6963344fe8
2 changed files with 5 additions and 3 deletions

View File

@ -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`),

View File

@ -193,6 +193,7 @@ SQLite 热备份时最好先停止服务,或至少复制 `*.db`、`*.db-wal`
在 macOS/Linux 上,从配置文件同目录的 `cyberstrike-ai` 启动时,点击「一键更新」后,控制台在构建成功时自动切换到新二进制。
构建期间旧服务继续提供服务;切换时连接会短暂中断,页面在新服务应答后自动刷新并沿用仍然有效的登录会话。
刷新后可以在「一键更新」的「运行中的构建」字段核对当前服务的提交号。
这一步不依赖 systemd 或 launchd;长期部署仍建议用守护进程做开机自启和异常恢复。通过 API 或命令行换过
二进制后,可以在支持自动切换的安装上用控制台的「立即重启服务」启用磁盘上的版本。