Skip to content

Commit

Permalink
Merge pull request #72 from devsapp/fix-python3-http
Browse files Browse the repository at this point in the history
add python3 http example can choice runtime
  • Loading branch information
rsonghuster authored Jan 20, 2023
2 parents 9afc7d6 + be8adb7 commit 12466d4
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 114 deletions.
19 changes: 10 additions & 9 deletions event-function/fc-event-python3/cloudshell.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# 快速体验 Python3.6 Event 函数案例
# 快速体验 Python3 Event 函数案例

欢迎您使用Serverless Devs开发者工具进行项目开发,本实验是基于Serverless Devs部署 Python3.6 Event 案例到阿里云函数计算。
欢迎您使用Serverless Devs开发者工具进行项目开发,本实验是基于Serverless Devs部署 Python3 Event 案例到阿里云函数计算。

整个实验过程包括:
- [下载工具](#下载工具)
- [配置密钥](#配置密钥)
- [初始化项目](#初始化项目)
- [部署项目](#部署项目)
- [更多信息](#更多信息)

> - [:octocat: 源代码](https://github.com/devsapp/start-fc/tree/main/event-function/fc-event-python3.6/src)
- [快速体验 Python3 Event 函数案例](#快速体验-python3-event-函数案例)
- [下载工具](#下载工具)
- [配置密钥](#配置密钥)
- [初始化项目](#初始化项目)
- [部署项目](#部署项目)
- [更多信息](#更多信息)

> - [:octocat: 源代码](https://github.com/devsapp/start-fc/tree/main/event-function/fc-event-python3/src)
## 下载工具

Expand Down
6 changes: 3 additions & 3 deletions event-function/fc-event-python3/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Type: Application
Name: start-fc-event-python3
Version: 1.1.23
Version: 1.1.24
Provider:
- 阿里云
Description: 快速部署一个 Python 3 的 Event 类型的 Hello World 函数到阿里云函数计算。
Expand Down Expand Up @@ -65,6 +65,6 @@ Parameters:
default: python3.9
description: 创建应用所在的地区
enum:
- python3.6
- python3.9
- python3.10
- python3.10
- python3.6
84 changes: 0 additions & 84 deletions http-function/fc-http-python3.6/src/readme.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# 快速体验 Python3.6 HTTP 函数案例
# 快速体验 Python3 HTTP 函数案例

欢迎您使用Serverless Devs开发者工具进行项目开发,本实验是基于Serverless Devs部署 Python3.6 HTTP 案例到阿里云函数计算。
欢迎您使用Serverless Devs开发者工具进行项目开发,本实验是基于Serverless Devs部署 Python3 HTTP 案例到阿里云函数计算。

整个实验过程包括:
- [下载工具](#下载工具)
- [配置密钥](#配置密钥)
- [初始化项目](#初始化项目)
- [部署项目](#部署项目)
- [更多信息](#更多信息)

> - [:octocat: 源代码](https://github.com/devsapp/start-fc/tree/main/http-function/fc-http-python3.6/src)
- [快速体验 Python3 HTTP 函数案例](#快速体验-python3-http-函数案例)
- [下载工具](#下载工具)
- [配置密钥](#配置密钥)
- [初始化项目](#初始化项目)
- [部署项目](#部署项目)
- [更多信息](#更多信息)

> - [:octocat: 源代码](https://github.com/devsapp/start-fc/tree/main/http-function/fc-http-python3/src)
## 下载工具

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Type: Application
Name: start-fc-http-python3
Version: 1.1.22
Version: 1.1.23
Provider:
- 阿里云
Description: 快速部署一个 Python 3.6 的 HTTP 类型的 Hello World 函数到阿里云函数计算。
Description: 快速部署一个 Python 3 的 HTTP 类型的 Hello World 函数到阿里云函数计算。
HomePage: https://github.com/devsapp/start-fc
Tags:
- 函数计算
Expand All @@ -22,6 +22,7 @@ Parameters:
- region
- serviceName
- functionName
- runtime
properties:
region:
title: 地域
Expand Down Expand Up @@ -57,4 +58,13 @@ Parameters:
title: 函数名
type: string
default: start-fc-http-python3
description: 函数名称,只能包含字母、数字、下划线和中划线。不能以数字、中划线开头。长度在 1-64 之间
description: 函数名称,只能包含字母、数字、下划线和中划线。不能以数字、中划线开头。长度在 1-64 之间
runtime:
title: python 运行时
type: string
default: python3.9
description: 创建应用所在的地区
enum:
- python3.9
- python3.10
- python3.6
1 change: 1 addition & 0 deletions http-function/fc-http-python3/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<description>

快速部署一个 Python 3.6 的 HTTP 类型的 Hello World 函数到阿里云函数计算。
快速部署一个 Python 3 的 HTTP 类型的 Hello World 函数到阿里云函数计算。

</description>

Expand All @@ -33,7 +33,7 @@

# 代码 & 预览

- [ :smiley_cat: 源代码](https://github.com/devsapp/start-fc/blob/main/http-function/fc-http-python3.6)
- [ :smiley_cat: 源代码](https://github.com/devsapp/start-fc/blob/main/http-function/fc-http-python3)

</codepre>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ services:
function:
name: "{{ functionName }}"
description: 'hello world by serverless devs'
runtime: python3
runtime: "{{ runtime }}"
codeUri: ./code
handler: index.handler
memorySize: 128
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ services:
region: ${vars.region} # For the usage of variables, please refer to: https://www.serverless-devs.com/serverless-devs/yaml#Variable assignment
service: ${vars.service}
function:
name: custom-cpp-event-function
name: python-http-function
description: 'hello world by serverless devs'
runtime: python3
runtime: python3.9
codeUri: ./code
handler: index.handler
memorySize: 128
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion update.list
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
event-function/fc-event-python3
event-function/fc-event-python3
http-function/fc-http-python3

0 comments on commit 12466d4

Please sign in to comment.