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
+1
View File
@@ -59,6 +59,7 @@ export default defineConfig({
text: "部署 LangBot",
collapsed: true,
items: [
{ text: "包管理器部署", link: "/zh/deploy/langbot/package" },
{ text: "Docker部署", link: "/zh/deploy/langbot/docker" },
{
text: "1Panel面板部署",
+13
View File
@@ -0,0 +1,13 @@
# Deploy with Package Manager
:::info
Supports Windows, Linux, Mac OS, etc. Recommended for testing environments and personal use scenarios; production-level environments please use [Docker Deployment](/en/deploy/langbot/docker.html).
:::
LangBot is packaged and released to PyPI. Please install [uv](https://docs.astral.sh/uv/getting-started/installation/), and then run the following command in an empty directory:
```bash
uvx langbot@latest
```
This will set the current directory as the working directory, and you can access http://localhost:5300 to start using it.
+10
View File
@@ -1,5 +1,15 @@
# Update LangBot
## Using Package Manager
Please execute in the directory you deployed LangBot again:
```bash
uvx langbot@latest
```
This command will download and start the latest version of LangBot.
## Using Docker (or one-click deployment based on Docker)
Please execute in the directory you cloned LangBot:
+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 目录下执行: