From 2c22ba288a4bde324fcf35090a013dfee3d042ed Mon Sep 17 00:00:00 2001 From: Abudu Date: Sat, 28 Dec 2024 12:21:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E8=8B=B1=E6=96=87=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en/start/build.md | 71 +++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 36 deletions(-) diff --git a/docs/en/start/build.md b/docs/en/start/build.md index 8cce6f6..40f65b9 100644 --- a/docs/en/start/build.md +++ b/docs/en/start/build.md @@ -10,7 +10,41 @@ Thanks to Python's powerful cross-platform capabilities, Qexo supports deploymen It is worth noting that if you are using Vercel for deployment, I do not recommend using your own database, as you often cannot guarantee the connection quality with Vercel. -> Due to a [bug on Vercel's side](https://vercel.com/docs/functions/runtimes/python#python-dependencies), you need to change the Node.js version to 18.x in the project Settings -> General -> Node.js Version to complete the deployment. +## Docker Deployment + +It is recommended to use Docker to deploy the Qexo application anywhere with one click. + +```bash +docker run -d \ + --restart=unless-stopped \ + -v $(pwd)/db:/app/db \ + -p 8000:8000 \ + -e TIMEOUT=600 \ + --name="qexo" \ + abudulin/qexo:latest +``` +Where `$(pwd)/db` is the data storage directory, you can change it to the desired address. + +If you need the Dev branch, please pull `qexo:testing`. + +Of course, you can also use 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 Deployment (PostgreSQL/Vercel) @@ -112,41 +146,6 @@ The first deployment will report an error, please ignore it and re-enter the pro Click Redeploy in Deployments to start the deployment. If there is no Error message, you can open the domain to enter the initialization guide. -## Docker Deployment - -It is recommended to use Docker to deploy the Qexo application anywhere with one click. - -```bash -docker run -d \ - --restart=unless-stopped \ - -v $(pwd)/db:/app/db \ - -p 8000:8000 \ - -e TIMEOUT=600 \ - --name="qexo" \ - abudulin/qexo:latest -``` -Where `$(pwd)/db` is the data storage directory, you can change it to the desired address. - -If you need the Dev branch, please pull `qexo:testing`. - -Of course, you can also use 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 -``` ## Local Source Code Deployment (Advanced) Starting from version 2.0, Qexo has provided more comprehensive support for local deployment.