Skip to content

Commit ff8fab3

Browse files
authored
fix document and region bug (#62)
* fix document demo code indentation * sync region choices of fun config * add code packing log
1 parent 9cea02f commit ff8fab3

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

docs/specs/2018-04-03-zh-cn.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ Resources:
4949
Handler: index.handler
5050
Runtime: nodejs6
5151
CodeUri: './'
52-
Events:
53-
http-test: # trigger name
54-
Type: HTTP # http trigger
55-
Properties:
56-
AuthType: ANONYMOUS
57-
Methods: ['GET', 'POST', 'PUT']
52+
Events:
53+
http-test: # trigger name
54+
Type: HTTP # http trigger
55+
Properties:
56+
AuthType: ANONYMOUS
57+
Methods: ['GET', 'POST', 'PUT']
5858
```
5959
6060
阿里云 Fun 中的所有属性名称都**区分大小写**。

docs/specs/2018-04-03.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ Resources:
4949
Handler: index.handler
5050
Runtime: nodejs6
5151
CodeUri: './'
52-
Events:
53-
http-test: # trigger name
52+
Events:
53+
http-test: # trigger name
5454
Type: HTTP # http trigger
5555
Properties:
56-
AuthType: ANONYMOUS
57-
Methods: ['GET', 'POST', 'PUT']
56+
AuthType: ANONYMOUS
57+
Methods: ['GET', 'POST', 'PUT']
5858
```
5959
6060
All property names in Aliyun Fun are **case sensitive**.

lib/commands/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ async function config() {
4040
type: 'list',
4141
name: 'defaultRegion',
4242
message: 'Default region name',
43-
choices: ['cn-beijing', 'cn-shanghai', 'cn-shenzhen', 'cn-hangzhou', 'cn-zhangjiakou', 'cn-hongkong',
44-
'ap-southeast-1', 'ap-southeast-2'],
43+
choices: ['cn-beijing', 'cn-hangzhou', 'cn-shanghai', 'cn-shenzhen' , 'cn-hongkong',
44+
'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'eu-central-1'],
4545
default: profile.defaultRegion
4646
}
4747
];

lib/deploy/deploy-support.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ async function getFunCodeAsBase64(codeUri) {
274274
} else {
275275
codeUri = './';
276276
}
277-
277+
278278
return await zip.file(codeUri);
279279
}
280280

@@ -316,9 +316,9 @@ async function makeFunction({
316316
if (codeUri && codeUri.startsWith('oss://')) {
317317
code = extractOssCodeUri(codeUri);
318318
} else {
319-
debug(`package function ${functionName}.`);
319+
console.log(`\t\tWaiting for packaging function ${functionName} code...`);
320320
const base64 = await getFunCodeAsBase64(codeUri);
321-
debug(`package function ${functionName}. done.`);
321+
console.log(green(`\t\tpackage function ${functionName} code done`));
322322

323323
code = {
324324
zipFile: base64

0 commit comments

Comments
 (0)