mirror of https://github.com/stilleshan/subweb.git
support Vercel
This commit is contained in:
parent
26a9d9f11a
commit
d5ed7dfb5e
|
@ -10,6 +10,7 @@ Docker [stilleshan/subweb](https://hub.docker.com/r/stilleshan/subweb)*
|
|||
|
||||
## 示例
|
||||
[https://sub.ops.ci](https://sub.ops.ci)
|
||||
[https://subweb-demo.vercel.app/](https://subweb-demo.vercel.app/)
|
||||
*`前后端示例,可以直接使用.`*
|
||||
|
||||
## 部署
|
||||
|
@ -48,6 +49,14 @@ docker run -d --name subweb --restart always \
|
|||
访问 `http://127.0.0.1:18080`
|
||||
> *推荐使用 nginx 反向代理部署*
|
||||
|
||||
### Vercel 快速部署
|
||||
为方便 docker 用户方便挂载或环境变量部署,默认`main`分支不支持`Vercel`,需要`fork`仓库少许设置才能部署至`Vercel`.
|
||||
1. fork 本仓库, 注意**取消**勾选`Copy the main branch only`
|
||||
2. Vercel 中创建项目使用`subweb`首次部署.
|
||||
3. 部署完毕后,在`Vercel`项目 - Settings - Git - Production Branch 设置为`vercel`.
|
||||
4. 修改环境变量 - Settings - Environment Variables 中修改环境变量,具体参考仓库中`.env`文件.
|
||||
5. Vercel 部署如需修改导航栏信息,需自行修改`src/layouts/components/header/navBarItem.js`文件.
|
||||
|
||||
### subweb + subconverter + myurls 合并进阶版
|
||||
详情查看 [stilleshan/sub](https://github.com/stilleshan/dockerfiles/tree/main/sub)
|
||||
|
||||
|
|
Loading…
Reference in New Issue