From ca3c14ee3050b7c82ec0a29c3be6a230af87ea7c Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Sun, 16 Nov 2025 23:25:36 +0800 Subject: [PATCH] docs: add uvx deployment --- docs/.vitepress/config.mts | 1 + docs/en/deploy/langbot/package.md | 13 +++++++++++++ docs/en/deploy/update.md | 10 ++++++++++ docs/zh/deploy/langbot/package.md | 13 +++++++++++++ docs/zh/deploy/update.md | 10 ++++++++++ 5 files changed, 47 insertions(+) create mode 100644 docs/en/deploy/langbot/package.md create mode 100644 docs/zh/deploy/langbot/package.md diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index c0150f18f..8ba06a2de 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -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面板部署", diff --git a/docs/en/deploy/langbot/package.md b/docs/en/deploy/langbot/package.md new file mode 100644 index 000000000..13033b76c --- /dev/null +++ b/docs/en/deploy/langbot/package.md @@ -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. \ No newline at end of file diff --git a/docs/en/deploy/update.md b/docs/en/deploy/update.md index 982e4e2ef..fe40e1ea4 100644 --- a/docs/en/deploy/update.md +++ b/docs/en/deploy/update.md @@ -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: diff --git a/docs/zh/deploy/langbot/package.md b/docs/zh/deploy/langbot/package.md new file mode 100644 index 000000000..c8fdd43df --- /dev/null +++ b/docs/zh/deploy/langbot/package.md @@ -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 即可开始使用。 diff --git a/docs/zh/deploy/update.md b/docs/zh/deploy/update.md index 96b9daba2..28a9de685 100644 --- a/docs/zh/deploy/update.md +++ b/docs/zh/deploy/update.md @@ -1,5 +1,15 @@ # 更新 LangBot +## 使用包管理器部署 + +请在之前使用包管理器部署的目录下重新执行: + +```bash +uvx langbot@latest +``` + +这将重新下载并启动最新版本的 LangBot。 + ## 使用 Docker(或基于 Docker 的一键部署) 请在之前 Clone 的 LangBot 目录下执行: