File tree Expand file tree Collapse file tree 4 files changed +15
-129
lines changed Expand file tree Collapse file tree 4 files changed +15
-129
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
# 腾讯云 Flask Serverless Component
4
4
5
- 简体中文 | [ English] ( . /README.en.md)
5
+ 简体中文 | [ English] ( https://github.com/serverless-components/tencent-flask/tree/master /README.en.md)
6
6
7
7
## 简介
8
8
@@ -51,15 +51,15 @@ def user(id):
51
51
52
52
通过 npm 全局安装 [ serverless cli] ( https://github.com/serverless/serverless )
53
53
54
- ``` shell
54
+ ``` bash
55
55
$ npm install -g serverless
56
56
```
57
57
58
58
### 2. 配置
59
59
60
60
本地创建 ` serverless.yml ` 文件,在其中进行如下配置
61
61
62
- ``` shell
62
+ ``` bash
63
63
$ touch serverless.yml
64
64
```
65
65
@@ -87,31 +87,31 @@ inputs:
87
87
environment : release
88
88
` ` `
89
89
90
- - [更多配置](. /docs/configure.md)
90
+ - [更多配置](https://github.com/serverless-components/tencent-flask/tree/master /docs/configure.md)
91
91
92
92
### 3. 部署
93
93
94
94
如您的账号未 [登陆](https://cloud.tencent.com/login) 或 [注册](https://cloud.tencent.com/register) 腾讯云,您可以直接通过 ` 微信` 扫描命令行中的二维码进行授权登陆和注册。
95
95
96
96
通过 `sls` 命令进行部署,并可以添加 `--debug` 参数查看部署过程中的信息
97
97
98
- ` ` ` shell
98
+ ` ` ` bash
99
99
$ sls --debug
100
100
` ` `
101
101
102
102
# ## 4. 移除
103
103
104
104
通过以下命令移除部署的 API 网关
105
105
106
- ` ` ` shell
106
+ ` ` ` bash
107
107
$ sls remove --debug
108
108
` ` `
109
109
110
110
# ## 账号配置(可选)
111
111
112
112
当前默认支持 CLI 扫描二维码登录,如您希望配置持久的环境变量/秘钥信息,也可以本地创建 `.env` 文件
113
113
114
- ` ` ` shell
114
+ ` ` ` bash
115
115
$ touch .env # 腾讯云的配置信息
116
116
` ` `
117
117
@@ -130,3 +130,9 @@ TENCENT_SECRET_KEY=123
130
130
# ## 更多组件
131
131
132
132
可以在 [Serverless Components](https://github.com/serverless/components/blob/master/README.cn.md) repo 中查询更多组件的信息。
133
+
134
+ # # License
135
+
136
+ MIT License
137
+
138
+ Copyright (c) 2020 Tencent Cloud, Inc.
Original file line number Diff line number Diff line change 1
1
name : flask
2
- version : 0.0.6
2
+ version : 0.0.7
3
3
author : Tencent Cloud, Inc
4
4
org : Tencent Cloud, Inc
5
5
description : Deploy a serverless Flask application onto Tencent SCF and API Gateway.
Original file line number Diff line number Diff line change 1
1
{
2
2
"dependencies" : {
3
3
"download" : " ^8.0.0" ,
4
- "tencent-component-toolkit" : " ^1.15.7 " ,
4
+ "tencent-component-toolkit" : " ^1.16.3 " ,
5
5
"type" : " ^2.0.0"
6
6
}
7
7
}
You can’t perform that action at this time.
0 commit comments