Skip to content

Commit

Permalink
docs: add cloudbase deploy doc (#2544)
Browse files Browse the repository at this point in the history
  • Loading branch information
binggg committed Aug 3, 2020
1 parent 465ae40 commit 1be6c5b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions packages/docs/docs/zh/guide/deploy.md
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

0 comments on commit 1be6c5b

Please sign in to comment.