目前能支持广州的环境吗
cayzlh opened this issue · comments
Ant丶 commented
Booker Zhao commented
配置文件中可以配置一下地域
…---原始邮件---
发件人: "Ant丶"<notifications@github.com>
发送时间: 2021年3月5日(周五) 晚上11:11
收件人: "TencentCloudBase/cloudbase-action"<cloudbase-action@noreply.github.com>;
抄送: "Subscribed"<subscribed@noreply.github.com>;
主题: [TencentCloudBase/cloudbase-action] 目前能支持广州的环境吗 (#23)
使用GitHub action 部署静态网站的时候提示:there is no normal environment。
不知道是不是环境的原因:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
beet commented
请仔细看下 CLI 配置文件的文档:https://docs.cloudbase.net/cli-v1/config.html#zi-duan
{
"version": "2.0",
"envId": "xxx",
+ "region": "yourRegion",
}
Ant丶 commented
收到。
Ant丶 commented
我使用下面的配置部署之后变成了云环境里面的一个应用。。
{
"envId": "{{envId}}",
"version": "2.0",
"region": "ap-guangzhou",
"framework": {
"name": "diary",
"plugins": {
"hexo": {
"use": "@cloudbase/framework-plugin-website",
"inputs": {
"outputPath": "./public",
"cloudPath": "/diary",
"ignore": [".git", ".github", "node_modules", "cloudbaserc.js"]
}
}
}
}
}
如果我想达到的预期只是部署静态网站托管的话, 需要怎么配置呢。
beet commented
@cayzlh V2 暂时不支持
我使用下面的配置部署之后变成了云环境里面的一个应用。。
虽然可以实现,但是这就需要本地构建再上传输出文件夹到 GitHub;我认为 CloudBase Framework (也就是目前 V2 版本)是更好的解决方案,我们在本地只需要直接写代码就好 💪,构建交给 GitHub