From 83d2dfb32295cfb45fb69efbc55c1cb0ca4f3d8d Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Tue, 19 Aug 2025 21:50:22 +0800 Subject: [PATCH] Simplify deployment section in README files Streamlined the deployment instructions in both English and Chinese README files by removing the manual deployment section and consolidating the headings for Cloudflare Workers, Vercel, and Docker. This makes the deployment options clearer and reduces redundancy. --- README.en.md | 49 +++---------------------------------------------- README.md | 49 +++---------------------------------------------- 2 files changed, 6 insertions(+), 92 deletions(-) diff --git a/README.en.md b/README.en.md index 0c7f778..c99b296 100644 --- a/README.en.md +++ b/README.en.md @@ -1891,21 +1891,19 @@ WORKDIR /app ## 🚀 Deployment Options -### One-Click Cloudflare Workers Deployment +### Cloudflare Workers [![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/xixu-me/Xget) After deployment, your Xget service will be available at `your-worker-name.your-subdomain.workers.dev`. -### One-Click Vercel Deployment +### Vercel [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/xixu-me/Xget) After deployment, your Xget service will be available at `your-project-name.vercel.app`. -### Docker Deployment - -[![Docker](https://img.shields.io/badge/Docker-2496ED?&logo=docker&logoColor=white)](https://github.com/xixu-me/Xget/pkgs/container/xget) +### Docker #### Using Pre-built Images (Recommended) @@ -2043,47 +2041,6 @@ kubectl apply -f k8s-deployment.yaml After deployment, your Xget service will be available at `http://localhost:3000`. You can check the service status through the `/api/health` endpoint. -### Manual Deployment - -If you prefer manual deployment or need custom configuration: - -#### Prerequisites - -1. Sign up for a [Cloudflare account](https://dash.cloudflare.com/sign-up/workers-and-pages) -2. Install [Node.js](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) - -#### Deployment Steps - -1. **Clone the repository** - - ```bash - git clone https://github.com/xixu-me/Xget.git - cd Xget - ``` - -2. **Install dependencies and authenticate** - - ```bash - npm install - npx wrangler login - ``` - -3. **Customize configuration (optional)** - - Edit the `wrangler.toml` file to set your repository name: - - ```toml - name = "your-xget-project-name" - ``` - -4. **Deploy** - - ```bash - npm run deploy - ``` - -After deployment, your Xget service will be available at `your-worker-name.your-subdomain.workers.dev`. - ## 🔧 Configuration ### Configuration Parameters diff --git a/README.md b/README.md index 04ae7ed..31d3a61 100644 --- a/README.md +++ b/README.md @@ -2135,21 +2135,19 @@ WORKDIR /app ## 🚀 部署选择 -### Cloudflare Workers 一键部署 +### Cloudflare Workers [![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/xixu-me/Xget) 部署后,你的 Xget 服务将在 `your-worker-name.your-subdomain.workers.dev` 上可用。 -### Vercel 一键部署 +### Vercel [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/xixu-me/Xget) 部署后,你的 Xget 服务将在 `your-project-name.vercel.app` 上可用。 -### Docker 部署 - -[![Docker](https://img.shields.io/badge/Docker-2496ED?&logo=docker&logoColor=white)](https://github.com/xixu-me/Xget/pkgs/container/xget) +### Docker #### 使用预构建镜像(推荐) @@ -2287,47 +2285,6 @@ kubectl apply -f k8s-deployment.yaml 部署完成后,你的 Xget 服务将在 `http://localhost:3000` 上可用。通过 `/api/health` 端点可以检查服务状态。 -### 手动部署 - -如果你更喜欢手动部署或需要自定义配置: - -#### 前置要求 - -1. 注册 [Cloudflare 账户](https://dash.cloudflare.com/sign-up/workers-and-pages) -2. 安装 [Node.js](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) - -#### 部署步骤 - -1. **克隆存储库** - - ```bash - git clone https://github.com/xixu-me/Xget.git - cd Xget - ``` - -2. **安装依赖并认证** - - ```bash - npm install - npx wrangler login - ``` - -3. **自定义配置(可选)** - - 编辑 `wrangler.toml` 文件设置你的存储库名称: - - ```toml - name = "你的-xget-项目名" - ``` - -4. **部署** - - ```bash - npm run deploy - ``` - -部署完成后,你的 Xget 服务将在 `your-worker-name.your-subdomain.workers.dev` 上可用。 - ## 🔧 配置 ### 配置参数