Skip to content

Commit

Permalink
删除过时信息
Browse files Browse the repository at this point in the history
  • Loading branch information
am-abudu committed Dec 28, 2024
1 parent 4bebf0d commit d94a9e5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 36 deletions.
2 changes: 1 addition & 1 deletion docs/en/start/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Click Redeploy in Deployments to start the deployment. If there is no Error mess

## Docker Deployment

It is recommended to use Docker to deploy the Qexo application anytime, anywhere with one click.
It is recommended to use Docker to deploy the Qexo application anywhere with one click.

```bash
docker run -d \
Expand Down
69 changes: 34 additions & 35 deletions docs/start/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,40 @@ updated: '2024-07-21T23:40:37.381+08:00'

值得注意的一点是, 如果你使用的是 Vercel 部署, 我不建议你自备数据库, 因为你往往无法保证与 Vercel 的连接质量。

> 由于 [Vercel方面的Bug](https://vercel.com/docs/functions/runtimes/python#python-dependencies) 你需要在项目 Settings -> General -> Node.js Version 将 Node.js 版本改为 18.x 以完成部署
## Docker 部署
建议使用 Docker 随时随地一键部署 Qexo 应用

```bash
docker run -d \
--restart=unless-stopped \
-v $(pwd)/db:/app/db \
-p 8000:8000 \
-e TIMEOUT=600 \
--name="qexo" \
abudulin/qexo:latest
```
其中 `$(pwd)/db` 为数据存储目录, 你可以改为需要的地址

如果你需要 Dev 分支, 请拉取 `qexo:testing`

当然, 你也可以使用 docker-compose
```yml
version: '3.8'

services:
qexo:
image: abudulin/qexo:latest
container_name: qexo
restart: unless-stopped
ports:
- "8000:8000"
environment:
WORKERS: 4
THREADS: 4
TIMEOUT: 600
volumes:
- ./db:/app/db
```
## Vercel 部署 (PostgreSQL/Vercel)
Expand Down Expand Up @@ -116,40 +149,6 @@ updated: '2024-07-21T23:40:37.381+08:00'

在 Deployments 点击 Redeploy 开始部署, 若没有 Error 信息即可打开域名进入初始化引导

## Docker 部署
建议使用 Docker 在随时随地一键部署 Qexo 应用

```bash
docker run -d \
--restart=unless-stopped \
-v $(pwd)/db:/app/db \
-p 8000:8000 \
-e TIMEOUT=600 \
--name="qexo" \
abudulin/qexo:latest
```
其中 `$(pwd)/db` 为数据存储目录, 你可以改为需要的地址

如果你需要 Dev 分支, 请拉取 `qexo:testing`

当然, 你也可以使用 docker-compose
```yml
version: '3.8'

services:
qexo:
image: abudulin/qexo:latest
container_name: qexo
restart: unless-stopped
ports:
- "8000:8000"
environment:
WORKERS: 4
THREADS: 4
TIMEOUT: 600
volumes:
- ./db:/app/db
```
## 本地源码部署 (高级)

从 2.0 版本开始, Qexo 对本地部署进行了较为完善的支持
Expand Down

0 comments on commit d94a9e5

Please sign in to comment.