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 22
33# 腾讯云 Flask Serverless Component
44
5- 简体中文 | [ English] ( . /README.en.md)
5+ 简体中文 | [ English] ( https://github.com/serverless-components/tencent-flask/tree/master /README.en.md)
66
77## 简介
88
@@ -51,15 +51,15 @@ def user(id):
5151
5252通过 npm 全局安装 [ serverless cli] ( https://github.com/serverless/serverless )
5353
54- ``` shell
54+ ``` bash
5555$ npm install -g serverless
5656```
5757
5858### 2. 配置
5959
6060本地创建 ` serverless.yml ` 文件,在其中进行如下配置
6161
62- ``` shell
62+ ``` bash
6363$ touch serverless.yml
6464```
6565
@@ -87,31 +87,31 @@ inputs:
8787 environment : release
8888` ` `
8989
90- - [更多配置](. /docs/configure.md)
90+ - [更多配置](https://github.com/serverless-components/tencent-flask/tree/master /docs/configure.md)
9191
9292### 3. 部署
9393
9494如您的账号未 [登陆](https://cloud.tencent.com/login) 或 [注册](https://cloud.tencent.com/register) 腾讯云,您可以直接通过 ` 微信` 扫描命令行中的二维码进行授权登陆和注册。
9595
9696通过 `sls` 命令进行部署,并可以添加 `--debug` 参数查看部署过程中的信息
9797
98- ` ` ` shell
98+ ` ` ` bash
9999$ sls --debug
100100` ` `
101101
102102# ## 4. 移除
103103
104104通过以下命令移除部署的 API 网关
105105
106- ` ` ` shell
106+ ` ` ` bash
107107$ sls remove --debug
108108` ` `
109109
110110# ## 账号配置(可选)
111111
112112当前默认支持 CLI 扫描二维码登录,如您希望配置持久的环境变量/秘钥信息,也可以本地创建 `.env` 文件
113113
114- ` ` ` shell
114+ ` ` ` bash
115115$ touch .env # 腾讯云的配置信息
116116` ` `
117117
@@ -130,3 +130,9 @@ TENCENT_SECRET_KEY=123
130130# ## 更多组件
131131
132132可以在 [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 11name : flask
2- version : 0.0.6
2+ version : 0.0.7
33author : Tencent Cloud, Inc
44org : Tencent Cloud, Inc
55description : Deploy a serverless Flask application onto Tencent SCF and API Gateway.
Original file line number Diff line number Diff line change 11{
22 "dependencies" : {
33 "download" : " ^8.0.0" ,
4- "tencent-component-toolkit" : " ^1.15.7 " ,
4+ "tencent-component-toolkit" : " ^1.16.3 " ,
55 "type" : " ^2.0.0"
66 }
77}
You can’t perform that action at this time.
0 commit comments