Skip to content

Commit 86e5a49

Browse files
committed
fix: update tencnet-component-toolkit for api mark
1 parent 96be3ff commit 86e5a49

File tree

4 files changed

+15
-129
lines changed

4 files changed

+15
-129
lines changed

README.en.md

Lines changed: 0 additions & 120 deletions
This file was deleted.

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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.

serverless.component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: flask
2-
version: 0.0.6
2+
version: 0.0.7
33
author: Tencent Cloud, Inc
44
org: Tencent Cloud, Inc
55
description: Deploy a serverless Flask application onto Tencent SCF and API Gateway.

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
}

0 commit comments

Comments
 (0)