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.
This commit is contained in:
1 parent
1813f5bbe9
commit
83d2dfb322
2 files changed
+6
-92
No files matched your search
+3
-46
@@ -1891,21 +1891,19 @@ WORKDIR /app
|
||||
|
||||
## 🚀 Deployment Options
|
||||
|
||||
### One-Click Cloudflare Workers Deployment
|
||||
### Cloudflare Workers
|
||||
|
||||
[](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
|
||||
|
||||
[](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
|
||||
|
||||
[](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
|
||||
|
||||
@@ -2135,21 +2135,19 @@ WORKDIR /app
|
||||
|
||||
## 🚀 部署选择
|
||||
|
||||
### Cloudflare Workers 一键部署
|
||||
### Cloudflare Workers
|
||||
|
||||
[](https://deploy.workers.cloudflare.com/?url=https://github.com/xixu-me/Xget)
|
||||
|
||||
部署后,你的 Xget 服务将在 `your-worker-name.your-subdomain.workers.dev` 上可用。
|
||||
|
||||
### Vercel 一键部署
|
||||
### Vercel
|
||||
|
||||
[](https://vercel.com/new/clone?repository-url=https://github.com/xixu-me/Xget)
|
||||
|
||||
部署后,你的 Xget 服务将在 `your-project-name.vercel.app` 上可用。
|
||||
|
||||
### Docker 部署
|
||||
|
||||
[](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` 上可用。
|
||||
|
||||
## 🔧 配置
|
||||
|
||||
### 配置参数
|
||||
|
||||
Reference in new issue
Block a user