Revise Cloudflare Workers deployment instructions
Updated deployment instructions and fixed links.
This commit is contained in:
1 parent
2abc2dfcd1
commit
a2b5d364dc
1 file changed
+3
-25
@@ -4,36 +4,14 @@
|
||||
|
||||
## 🚀 部署说明
|
||||
|
||||
### 方法一:一键部署到 Cloudflare Workers
|
||||
### 一键部署到 Cloudflare Workers
|
||||
|
||||
点击下方按钮即可一键部署到 Cloudflare Workers:
|
||||
[](https://deploy.workers.cloudflare.com/?url=https://github.com/shuaiplus/NodeCrypt)
|
||||
[](https://deploy.workers.cloudflare.com/?url=https://github.com/shuaiplus/nodecrypt)
|
||||
|
||||
- 构建命令:npm run build
|
||||
- 部署命令:npm run deploy
|
||||
|
||||
> 注意:此方式会基于主仓库创建新项目,后续主仓库更新不会自动同步(项目已成型,很少更新,可以直接使用方法一)。
|
||||
|
||||
### 方法二:自动同步 fork 并部署(推荐长期维护)
|
||||
1. 先 fork 本项目到你自己的 GitHub 账号。
|
||||
2. 打开 Cloudflare Workers 控制台,选择“从 GitHub 导入”,并选择你 fork 的仓库进行部署。
|
||||
|
||||
- 构建命令:npm run build
|
||||
- 部署命令:npm run deploy
|
||||
|
||||
> 本项目已内置自动同步 workflow,fork 后无需任何操作,主仓库的更新会自动同步到你的 fork 仓库,Cloudflare 也会自动重新部署,无需手动维护。
|
||||
|
||||
### 方法三:Docker 一键部署(不稳定,不建议)
|
||||
|
||||
```bash
|
||||
docker run -d --name nodecrypt -p 80:80 ghcr.io/shuaiplus/nodecrypt
|
||||
```
|
||||
|
||||
! 必须开启HTTPS,不然传输密钥会失败,导致无法进入房间。
|
||||
|
||||
### 方法四:本地开发部署
|
||||
克隆项目并安装依赖后,使用 `npm run dev` 启动开发服务器。
|
||||
使用 `npm run deploy` 部署到 Cloudflare Workers。
|
||||
-
|
||||
|
||||
## 📝 项目简介
|
||||
|
||||
|
||||
Reference in new issue
Block a user