File tree Expand file tree Collapse file tree 5 files changed +4
-5
lines changed
LocalDebugging/MyCloudFunction Expand file tree Collapse file tree 5 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ let package = Package(
22
22
dependencies: [
23
23
// This is the dependency on the swift-tencent-scf-runtime library.
24
24
// In real-world projects, this would say:
25
- // .package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.1 ")
25
+ // .package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.3 ")
26
26
. package ( name: " swift-tencent-scf-runtime " , path: " ../.. " ) ,
27
27
] ,
28
28
targets: [
Original file line number Diff line number Diff line change @@ -59,5 +59,4 @@ function_name=${function_name:-SwiftSample} # default for easy testing
59
59
read -p " Cloud Function region (eg: ap-beijing): " scf_region
60
60
scf_region=${scf_region:- ap-beijing} # default for easy testing
61
61
62
- tccli scf UpdateFunctionConfiguration --region " $scf_region " --FunctionName " $function_name " --Runtime " CustomRuntime" --InitTimeout 3
63
62
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 @@ -13,7 +13,7 @@ let package = Package(
13
13
dependencies: [
14
14
// This is the dependency on the swift-tencent-scf-runtime library.
15
15
// In real-world projects this would say:
16
- // .package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.1 ")
16
+ // .package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.3 ")
17
17
. package ( name: " swift-tencent-scf-runtime " , path: " ../../.. " ) ,
18
18
. package ( name: " Shared " , path: " ../Shared " ) ,
19
19
] ,
Original file line number Diff line number Diff line change @@ -64,5 +64,5 @@ coscmd -b "$cos_bucket" -r "$cos_region" upload ".build/scf/$executable/cloud-fu
64
64
echo " -------------------------------------------------------------------------"
65
65
echo " Updating \" $function_name \" to the latest \" $executable \" "
66
66
echo " -------------------------------------------------------------------------"
67
- tccli scf UpdateFunctionConfiguration --region " $scf_region " --FunctionName " $function_name " --Runtime " CustomRuntime" --InitTimeout 3
68
67
tccli scf UpdateFunctionCode --region " $scf_region " --FunctionName " $function_name " --Handler " swift.main" --CodeSource " Cos" --CosBucketName " $cos_bucket " --CosBucketRegion " $cos_region " --CosObjectName $executable .zip
68
+ echo " done"
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ let package = Package(
40
40
.executable (name : " MyCloudFunction" , targets : [" MyCloudFunction" ]),
41
41
],
42
42
dependencies : [
43
- .package (url : " https://github.com/stevapple/swift-tencent-scf-runtime.git" , from : " 0.0.1 " ),
43
+ .package (url : " https://github.com/stevapple/swift-tencent-scf-runtime.git" , from : " 0.0.3 " ),
44
44
],
45
45
targets : [
46
46
.target (name : " MyCloudFunction" , dependencies : [
You can’t perform that action at this time.
0 commit comments