Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add cloudbase deploy doc #2544

Merged
merged 1 commit into from
Aug 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions packages/docs/docs/zh/guide/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,32 @@
}
```

## 云开发 CloudBase

[云开发 CloudBase](https://cloudbase.net/) 是一个云原生一体化的 Serverless 云平台,支持静态网站、容器等多种托管能力,并提供简便的部署工具 [CloudBase Framework](https://cloudbase.net/framework.html) 来一键部署应用。

1. 全局安装 CloudBase CLI

```
npm install -g @cloudbase/cli
```

2. 在项目根目录运行以下命令一键部署 VuePress 应用:

```
cloudbase login
cloudbase init --without-template
cloudbase framework:deploy
```

CloudBase CLI 首先会跳转到控制台进行登录授权,然后将会交互式进行确认

确认信息后会立即进行部署,部署完成后,可以获得一个自动 SSL,CDN 加速的网站应用,你也可以搭配使用 Github Action 来持续部署 Github 上的 VuePress 应用。

也可以使用 `cloudbase init --template vuepress` 快速创建和部署一个新的 VuePress 应用

更多详细信息请查看 CloudBase Framework 的[部署项目示例](https://github.com/TencentCloudBase/cloudbase-framework#%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B)

## GitHub Pages

1. 在 `docs/.vuepress/config.js` 中设置正确的 `base`。
Expand Down