Skip to content

Commit 968362a

Browse files
author
dfounderliu
committed
fix url
1 parent 0ad864c commit 968362a

File tree

5 files changed

+7
-67
lines changed

5 files changed

+7
-67
lines changed

CHANGELOG.md

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 简介
44

5-
腾讯云 Django Serverless Component, 支持 Restful API 服务的部署,不支持 Flask Command.
5+
腾讯云 Pyramid Serverless Component, 支持 Restful API 服务的部署.
66

77
## 目录
88

@@ -92,7 +92,7 @@ PyramidTest:
9292

9393
这里要额外说明,`pyramidProjectName`实际上是包括你app的那个文件即`app = config.make_wsgi_app()`,并且要确保可以通过`文件名.app`从外引用该文件。
9494

95-
- [更多配置](https://github.com/serverless-components/tencent-flask/blob/master/docs/configure.md)
95+
- [更多配置](docs/configure.md)
9696

9797
### 3. 部署
9898

docs/configure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pyramid:
1111
inputs:
1212
region: ap-guangzhou
1313
pyramidProjectName: myproject
14-
functionName: flask-function
14+
functionName: pyramid-function
1515
serviceName: mytest
1616
serviceId: service-np1uloxw
1717
code: ./code
@@ -46,7 +46,7 @@ Main param description
4646
| Param | Required/Optional | Default | Description |
4747
| --------------------------------------------------- | :---------------: | :----------: | :------------------------------------------------------------------------------------------ |
4848
| region | Optional | ap-guangzhou | |
49-
| djangoProjectName | Required | | Django Projct Name |
49+
| pyramidProjectName | Required | | Pyramid Projct Name |
5050
| functionName | Optional | | ServerlessCloudFunction Name |
5151
| serviceName | Optional | | API-Gateway service name, default to create a new serivce |
5252
| serviceId | Optional | | API-Gateway service id, if it has will use this APII-Gateway service |

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@gosls/tencent-pyramid",
3-
"description": "Tencent Cloud Python Django Serverless Component",
4-
"version": "0.0.2",
3+
"description": "Tencent Cloud Python Pyramid Serverless Component",
4+
"version": "0.0.3",
55
"main": "serverless.js",
66
"publishConfig": {
77
"access": "public"

serverless.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class TencentPyramid extends Component {
4343
inputs.name =
4444
ensureString(inputs.functionName, { isOptional: true }) ||
4545
this.state.functionName ||
46-
`DjangoComponent_${random({ length: 6 })}`
46+
`PyramidComponent_${random({ length: 6 })}`
4747
inputs.codeUri = ensureString(inputs.code, { isOptional: true }) || process.cwd()
4848
inputs.region = ensureString(inputs.region, { default: 'ap-guangzhou' })
4949
inputs.include = ensureIterable(inputs.include, { default: [], ensureItem: ensureString })

0 commit comments

Comments
 (0)