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

fix:provisionConfig support defaultTarget and deploy cn-shanghai-fina… #25

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

mozhou52
Copy link
Collaborator

fix:provisionConfig support defaultTarget and deploy cn-shanghai-finance-1

@mozhou52 mozhou52 requested a review from rsonghuster December 12, 2024 08:48
@@ -314,7 +314,9 @@ export default class FC extends FC_Client {
if (this.customEndpoint) {
ossEndpoint = `oss-${this.region}.aliyuncs.com`;
}

if (this.region === 'cn-shanghai-finance-1'){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个也加上 如果 process.env.FC_REGION === this.region , 走内网吧, 我记得这个也是有内网的吧

@@ -105,14 +109,15 @@ export default class Provision {
throw new Error('Qualifier not specified, please specify --qualifier');
}

if (!_.isNumber(this.target)) {
if (!_.isNumber(this.defaultTarget || this.target)) {
throw new Error(
`Target must be a number, got ${this.target}. Please specify a number through --target <number>`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个报错, 是不是提示 defaultTarget 和 target

@rsonghuster rsonghuster merged commit c726bce into master Dec 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants