Skip to content

Commit 81bc29b

Browse files
tobygleisy-records
andauthored
docs: add 21yunbox for deployment (#20)
* docs: add 21yunbox for deployment docs: add 21yunbox for deployment * Update deploy.md * Update deploy.md Co-authored-by: 沈唁 <[email protected]>
1 parent a18b39e commit 81bc29b

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

deploy.md

+14-5
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ server {
8383

8484
### HTML5 路由
8585

86-
当使用HTML5路由时,你需要设置一条将所有请求重定向到你的`index.html`的重定向规则。当你使用Netlify时这相当简单,在你的**Publish Directory**下创建一个`\redirects`文件,写进以下内容,然后——:tada:就好了:
86+
当使用HTML5路由时,你需要设置一条将所有请求重定向到你的`index.html`的重定向规则。当你使用Netlify时这相当简单,在你的**Publish Directory**下创建一个`_redirects`文件,写进以下内容就可以了 :tada:
8787

8888
```sh
89-
/* /index.html 200
89+
/* /index.html 200
9090
```
9191

9292
## ZEIT Now
9393

9494
1. 安装 [Now CLI](https://zeit.co/download) : `npm i -g now`
95-
2. 切换到你的 docsify 网站的文档目录,比方说 `cd docs`
95+
2. 切换到你的 docsify 网站的文档目录,例如 `cd docs`
9696
3. 用一个指令来部署: `now`
9797

9898
## AWS Amplify
@@ -111,7 +111,7 @@ server {
111111
2. 登录到你的 [AWS 控制台](https://aws.amazon.com)。
112112
3. 到 [AWS Amplify 仪表盘](https://aws.amazon.com/amplify)。
113113
4. 选择 **Deploy** 路线来设置你的项目。
114-
5. 若有提示,如果你希望在项目根目录下保存你的文档,保持构建设置为空;如果你想保存文档到其它目录,修改 amplify.yml
114+
5. 若有提示,如果你希望在项目根目录下保存你的文档,保持构建设置为空;如果你想保存文档到其它目录,修改`amplify.yml`:
115115

116116
```yml
117117
version: 0.1
@@ -134,4 +134,13 @@ frontend:
134134
|----------------|----------------|---------------|
135135
| /<*>.md | /<*>.md | 200 (Rewrite) |
136136
| /<*>.png | /<*>.png | 200 (Rewrite) |
137-
| /<*> | /index.html | 200 (Rewrite) |
137+
| /<*> | /index.html | 200 (Rewrite) |
138+
139+
## 21云盒子
140+
141+
1. 在 [21云盒子](https://www.21yunbox.com) 中, 创建一个新的 `静态网页` ,使用以下配置部署:
142+
143+
- 构建命令:` `
144+
- 发布目录:填写为你的 docsify 网站的文档目录,例如 `./docs`
145+
146+
2. 点击 "部署" 按钮!

0 commit comments

Comments
 (0)