File tree Expand file tree Collapse file tree 8 files changed +10
-10
lines changed
LocalDebugging/MyCloudFunction/scripts Expand file tree Collapse file tree 8 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ lastVersion: $LATEST
79
79
traffic: 1
80
80
triggers:
81
81
apigw:
82
- - http://service-jyl9i6mc-1258834142.gz .apigw.tencentcs.com/release/api
82
+ - http://service-jyl9i6mc-1258834142.bj .apigw.tencentcs.com/release/api
83
83
84
84
Full details: https://serverless.cloud.tencent.com/apps/SwiftAPIGatewayDemo/SwiftAPIGatewayDemo/dev
85
85
@@ -89,7 +89,7 @@ Full details: https://serverless.cloud.tencent.com/apps/SwiftAPIGatewayDemo/Swif
89
89
For example:
90
90
91
91
```
92
- curl http://service-jyl9i6mc-1258834142.gz .apigw.tencentcs.com/release/api
92
+ curl http://service-jyl9i6mc-1258834142.bj .apigw.tencentcs.com/release/api
93
93
```
94
94
95
95
*** Warning:*** This Serverless template is only intended as a sample and creates a publicly accessible HTTP endpoint.
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ echo "-------------------------------------------------------------------------"
56
56
read -p " Cloud Function name (must exist in SCF): " function_name
57
57
function_name=${function_name:- SwiftSample} # default for easy testing
58
58
59
- read -p " Cloud Function region (eg: na-toronto ): " scf_region
60
- scf_region=${scf_region:- na-toronto } # default for easy testing
59
+ read -p " Cloud Function region (eg: ap-beijing ): " scf_region
60
+ scf_region=${scf_region:- ap-beijing } # default for easy testing
61
61
62
62
tccli scf UpdateFunctionConfiguration --region " $scf_region " --FunctionName " $function_name " --Runtime " CustomRuntime" --InitTimeout 3
63
63
tccli scf UpdateFunctionCode --region " $scf_region " --FunctionName " $function_name " --Handler " swift.main" --CodeSource " Cos" --CosBucketName " $cos_bucket " --CosBucketRegion " $cos_region " --CosObjectName $executable .zip
Original file line number Diff line number Diff line change 7
7
exclude :
8
8
- cloud-function.zip
9
9
runtime : CustomRuntime
10
- region : na-toronto
10
+ region : ap-beijing
11
11
description : Swift SCF demo for APIGateway
12
12
handler : swift.main
13
13
memorySize : 64
Original file line number Diff line number Diff line change 7
7
exclude :
8
8
- cloud-function.zip
9
9
runtime : CustomRuntime
10
- region : na-toronto
10
+ region : ap-beijing
11
11
description : Swift SCF demo for benchmark
12
12
handler : swift.main
13
13
memorySize : 128
Original file line number Diff line number Diff line change 7
7
exclude :
8
8
- cloud-function.zip
9
9
runtime : CustomRuntime
10
- region : na-toronto
10
+ region : ap-beijing
11
11
description : Swift SCF demo (currency exchange)
12
12
handler : swift.main
13
13
memorySize : 64
Original file line number Diff line number Diff line change 7
7
exclude :
8
8
- cloud-function.zip
9
9
runtime : CustomRuntime
10
- region : na-toronto
10
+ region : ap-beijing
11
11
description : Swift SCF demo (error handling)
12
12
handler : swift.main
13
13
memorySize : 64
Original file line number Diff line number Diff line change 7
7
exclude :
8
8
- cloud-function.zip
9
9
runtime : CustomRuntime
10
- region : na-toronto
10
+ region : ap-beijing
11
11
description : Swift SCF demo (hello world)
12
12
handler : swift.main
13
13
memorySize : 64
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ set -eu
30
30
31
31
executable=MyCloudFunction
32
32
function_name=swift-sample
33
- scf_region=na-toronto
33
+ scf_region=ap-beijing
34
34
cos_bucket=swift-scf-test-appid
35
35
cos_region=ap-beijing
36
36
You can’t perform that action at this time.
0 commit comments