docs: make English the default docs language and fix link paths

This commit is contained in:
zhayujie
2026-05-31 17:52:22 +08:00
parent 126649f70f
commit 7bf4ef3d05
231 changed files with 8999 additions and 8974 deletions

View File

@@ -1,31 +1,31 @@
---
title: 更新升级
description: CowAgent 的升级方式说明
title: Upgrade
description: How to upgrade CowAgent
---
## 命令升级(推荐)
## Recommended: One-line upgrade
使用 `cow update` 一键完成代码更新和服务重启:
Use `cow update` to pull the latest code and restart the service in one step:
```bash
cow update
```
该命令会自动完成以下流程:
The command runs the following automatically:
1. 拉取最新代码(`git pull`
2. 停止当前服务
3. 更新 Python 依赖
4. 重新安装 CLI
5. 启动服务
1. Pull the latest code (`git pull`)
2. Stop the running service
3. Update Python dependencies
4. Reinstall the CLI
5. Start the service
<Note>
如果未安装 Cow CLI,也可以使用 `./run.sh update` 完成相同操作。
If the Cow CLI is not installed, `./run.sh update` performs the same operations.
</Note>
## 手动升级
## Manual upgrade
在项目根目录下执行:
Run the following inside the project root:
```bash
git pull
@@ -33,23 +33,23 @@ pip3 install -r requirements.txt
pip3 install -e .
```
更新完成后重启服务:
Then restart the service:
```bash
# 使用 Cow CLI (推荐)
# Using Cow CLI (recommended)
cow restart
# 或使用 run.sh
# Or using run.sh
./run.sh restart
# 或使用 nohup 直接运行
# Or restart manually with nohup
kill $(ps -ef | grep app.py | grep -v grep | awk '{print $2}')
nohup python3 app.py & tail -f nohup.out
```
## Docker 升级
## Docker upgrade
`docker-compose.yml` 所在目录下执行:
Run the following in the directory containing `docker-compose.yml`:
```bash
sudo docker compose pull
@@ -57,5 +57,5 @@ sudo docker compose up -d
```
<Tip>
升级前建议备份 `config.json` 配置文件。Docker 环境下如需保留数据,可通过 volume 挂载持久化工作空间目录。
Back up `config.json` before upgrading. For Docker deployments, mount the workspace directory as a volume to persist data across upgrades.
</Tip>