File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,44 @@ serve -s dist
3333
3434## 平台指南
3535
36+ ### 云开发 CloudBase
37+
38+ [ 云开发 CloudBase] ( https://cloudbase.net/ ) 是一个云原生一体化的 Serverless 云平台,支持静态网站、容器等多种托管能力,并提供简便的部署工具 [ CloudBase Framework] ( https://cloudbase.net/framework.html ) 来一键部署应用。
39+
40+ #### 步骤一:安装云开发 CloudBase CLI
41+
42+ CloudBase CLI 集成了 [ CloudBase Framework] ( https://github.com/TencentCloudBase/cloudbase-framework ) 的能力,全局安装 CloudBase CLI 请运行以下命令:
43+
44+ ```
45+ npm install -g @cloudbase/cli
46+ ```
47+
48+ #### 步骤二:一键部署
49+
50+ 在项目根目录运行以下命令部署 Vue CLI 创建的应用:
51+
52+ ```
53+ cloudbase login
54+ cloudbase init --without-template
55+ cloudbase framework:deploy
56+ ```
57+
58+ CloudBase CLI 首先跳转到控制台进行登录授权,然后将会交互式进行以下步骤
59+
60+ - 选择一个环境,如果没有可以选择新建环境
61+ - 自动检测项目并确认构建脚本,输出目录、部署云端路径等信息
62+
63+ 确认信息后会立即进行部署,部署完成后,可以获得一个自动 SSL,CDN 加速的网站应用,你也可以搭配使用 Github Action 来持续部署 Github 上的 Vue 应用。
64+
65+ ### 混合部署
66+
67+ 除了部署一个纯静态的 Vue CLI 项目之外,还可以快速一键部署混合的全栈 Vue 应用:
68+
69+ - 使用 ` cloudbase init --template vue ` 快速创建和部署一个包含 Serverless 云函数后端的 Vue 应用
70+ - 使用 ` cloudbase init --template nuxt-ssr ` 快速创建和部署一个包含 SSR 和 Serverless 云函数后端的 Vue 应用
71+
72+ 详细信息请查看 CloudBase Framework 的[ 部署项目示例] ( https://github.com/TencentCloudBase/cloudbase-framework#%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B )
73+
3674### GitHub Pages
3775
3876#### 手动推送更新
You can’t perform that action at this time.
0 commit comments