docs: add uvx deployment

This commit is contained in:
Junyan Qin
2025-11-16 23:25:36 +08:00
parent 6f423b75f3
commit ca3c14ee30
5 changed files with 47 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# 使用包管理器部署
:::info
支持 Windows、Linux、Mac OS 等系统,推荐在测试环境、个人用途场景使用;生产级环境请使用[Docker部署](/zh/deploy/langbot/docker.html)。
:::
LangBot 已打包发布至 PyPI。请安装[uv](https://docs.astral.sh/uv/getting-started/installation/),然后在空目录下运行以下命令:
```bash
uvx langbot@latest
```
这将把该目录作为工作目录,访问 http://localhost:5300 即可开始使用。
+10
View File
@@ -1,5 +1,15 @@
# 更新 LangBot
## 使用包管理器部署
请在之前使用包管理器部署的目录下重新执行:
```bash
uvx langbot@latest
```
这将重新下载并启动最新版本的 LangBot。
## 使用 Docker(或基于 Docker 的一键部署)
请在之前 Clone 的 LangBot 目录下执行: