File tree Expand file tree Collapse file tree 4 files changed +20
-21
lines changed
web-framework/python/flask Expand file tree Collapse file tree 4 files changed +20
-21
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Type: Project
3
3
Name : start-fc-flask
4
4
Provider :
5
5
- 阿里云
6
- Version : 0.0.5
6
+ Version : 0.0.6
7
7
Description : 本案例将Flask框架,这一非常受欢迎的Python Web框架,快捷创建并部署到阿里云函数计算 FC。
8
8
HomePage : https://github.com/devsapp/start-web-framework
9
9
Organization : 阿里云函数计算(FC)
@@ -60,5 +60,6 @@ Parameters:
60
60
title : 域名配置
61
61
type : string
62
62
default : auto
63
+ description : 函数计算自定义域名, 如果为 auto,则会下发一个一定有效期的仅支持 http 临时测试域名(切莫用于生产)
63
64
required : false
64
65
x-domain : true
Original file line number Diff line number Diff line change 1
- framework :
1
+ fc-flask :
2
2
defaultBuilder :
3
3
languages :
4
4
- python3.10
Original file line number Diff line number Diff line change @@ -9,15 +9,10 @@ access: "{{ access }}"
9
9
vars :
10
10
region : " {{ region }}"
11
11
functionName : " {{ functionName }}"
12
+
12
13
resources :
13
- framework :
14
- component : fc3
15
- # actions:
16
- # pre-deploy:
17
- # - run: mkdir python
18
- # path: ./code
19
- # - run: pip install -r requirements.txt -t ./python
20
- # path: ./code
14
+ fc-flask :
15
+ component : fc3@dev
21
16
props :
22
17
timeout : 60
23
18
cpu : 1
@@ -36,6 +31,7 @@ resources:
36
31
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
37
32
PYTHONPATH : /opt/python:/code/python:/code
38
33
TZ : Asia/Shanghai
34
+ SEARCH_ENGINE : ' {{ search_engine }}'
39
35
functionName : ${vars.functionName}
40
36
code : ./code
41
37
layers :
@@ -50,14 +46,9 @@ resources:
50
46
- PUT
51
47
- DELETE
52
48
authType : anonymous
53
-
54
- fc3_domain_0 :
55
- component : fc3-domain
56
- props :
57
- region : ${vars.region}
58
- domainName : " {{ domainName }}"
59
- protocol : HTTP
60
- routeConfig :
61
- routes :
62
- - path : /*
63
- functionName : ${vars.functionName}
49
+ customDomain :
50
+ domainName : " {{ domainName }}"
51
+ protocol : HTTP
52
+ route :
53
+ path : /*
54
+ qualifier : LATEST
Original file line number Diff line number Diff line change
1
+ services : # 服务变量
2
+ fc-flask :
3
+ search_engine :
4
+ title : 使用的搜索引擎
5
+ type : string
6
+ default : ' www.baidu.com'
7
+ description : 使用的搜索引擎地址
You can’t perform that action at this time.
0 commit comments