mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-30 04:15:45 +08:00
docs: add uvx deployment
This commit is contained in:
@@ -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面板部署",
|
||||
|
||||
@@ -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.
|
||||
@@ -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:
|
||||
|
||||
@@ -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 即可开始使用。
|
||||
@@ -1,5 +1,15 @@
|
||||
# 更新 LangBot
|
||||
|
||||
## 使用包管理器部署
|
||||
|
||||
请在之前使用包管理器部署的目录下重新执行:
|
||||
|
||||
```bash
|
||||
uvx langbot@latest
|
||||
```
|
||||
|
||||
这将重新下载并启动最新版本的 LangBot。
|
||||
|
||||
## 使用 Docker(或基于 Docker 的一键部署)
|
||||
|
||||
请在之前 Clone 的 LangBot 目录下执行:
|
||||
|
||||
Reference in New Issue
Block a user