Skip to content

Commit 6c1b7ca

Browse files
committed
functionName parameter use vars
1 parent 6bed179 commit 6c1b7ca

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

web-framework/python/flask/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Type: Project
33
Name: start-fc-flask
44
Provider:
55
- 阿里云
6-
Version: 0.0.3
6+
Version: 0.0.4
77
Description: 本案例将Flask框架,这一非常受欢迎的Python Web框架,快捷创建并部署到阿里云函数计算 FC。
88
HomePage: https://github.com/devsapp/start-web-framework
99
Organization: 阿里云函数计算(FC)

web-framework/python/flask/src/s.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ name: flask-app
88
access: "{{ access }}"
99
vars:
1010
region: "{{ region }}"
11+
functionName: "{{ functionName }}"
1112
resources:
1213
framework:
1314
component: fc3
@@ -35,7 +36,7 @@ resources:
3536
PATH: /var/fc/lang/python3.10/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ruby/bin:/opt/bin:/code:/code/bin
3637
PYTHONPATH: /opt/python:/code/python:/code
3738
TZ: Asia/Shanghai
38-
functionName: "{{ functionName }}"
39+
functionName: ${vars.functionName}
3940
code: ./code
4041
layers:
4142
- acs:fc:${this.props.region}:official:layers/Python3-Flask2x/versions/2
@@ -59,4 +60,4 @@ resources:
5960
routeConfig:
6061
routes:
6162
- path: /*
62-
functionName: ${resources.framework.props.functionName}
63+
functionName: ${vars.functionName}

0 commit comments

Comments
 (0)