add Aliyun

This commit is contained in:
Seele 2022-05-08 14:18:06 +08:00
parent 38d84db952
commit 4321899e1a
No known key found for this signature in database
GPG Key ID: 4C57B7824A5B6680

View File

@ -86,7 +86,9 @@ docker-compose logs -f
## 使用云函数运行 ## 使用云函数运行
>以腾讯云为例 **腾讯云函数服务免费额度近期有变化,为了避免产生费用,建议切换到阿里云 函数计算 FC**
>腾讯云
1. 在本地完整运行一次。 1. 在本地完整运行一次。
@ -104,6 +106,24 @@ docker-compose logs -f
8. 完成enjoy it 8. 完成enjoy it
>阿里云
1. 在本地完整运行一次。
2. 打开并登录[函数计算 FC](https://fcnext.console.aliyun.com/cn-hangzhou/services)。注意左上方显示的地区,可点击切换其他地区。
3. 创建服务 (日志功能可能产生费用,建议关闭)
1. - 创建函数
2. 从零开始创建
1. `请求处理程序类型:处理事件请求`
2. `请求处理程序index.main_handler`,多用户请填写`index.main_handler_mulit`
3. 配置触发器:触发器类型 定时触发器 异步调用。建议触发方式设为`指定时间`
4. 点击创建
3. 进入函数详情
1. 打开函数配置
2. 修改 `环境信息` - `执行超时时间` 为300秒。
4. 测试运行
1. 打开 `函数详情`
2. 点击`测试函数`
5. 完成
## 使用的第三方库 ## 使用的第三方库
requests: [github](https://github.com/psf/requests) [pypi](https://pypi.org/project/requests/) requests: [github](https://github.com/psf/requests) [pypi](https://pypi.org/project/requests/)