Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
fix: add function name
Browse files Browse the repository at this point in the history
* docs: modify demo image
  • Loading branch information
beetcb committed Feb 19, 2021
1 parent 5fe6fca commit ee29512
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

2. 等待几秒(部署完成后) ⇢ 左栏 `云函数` ⇢ 点击 `cea` 进入此函数配置界面 ⇢ `函数代码` 拦下在线编辑器里修改 `conf.toml` 文件 ⇢ 相应注释都已写好,请自行填入 ⇢ 先**保存**后测试,无报错则成功部署

![示例](https://i.imgur.com/ZhTS6Ol.png)
![示例](https://i.imgur.com/co0zWxh.png)

3. 教程结束 ⚡ (如有问题,请附带日志提交 issue),此函数会自动在每天 5:00 11:00 16:00 触发,具体的配置文件示例如下:

Expand Down
6 changes: 3 additions & 3 deletions cloudbaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
"func": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "./",
"functionRootPath": "./serverless",
"functions": [
{
"name": "serverless",
"name": "cea",
"memory": 256,
"timeout": 10,
"runtime": "Nodejs10.15",
"installDependency": true,
"handler": "index.main",
"triggers": [
{
"name": "autosign",
"name": "autosign-cron",
"type": "timer",
"config": "0 0 5,11,16 * * * *"
}
Expand Down
2 changes: 1 addition & 1 deletion serverless/conf.toml → serverless/cea/conf.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 学校英文简称
school = "whpu"

# 用户配置,多用户配置方法请查看 cea 文档: https://github.com/beetcb/cea#readme
# 用户配置,多用户配置方法(或更详细的配置说明)请查看 cea 文档: https://github.com/beetcb/cea#readme
[[users]]
# 账号用户名
username = "11"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion serverless/package.json → serverless/cea/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "severless",
"name": "cea-sign",
"version": "1.0.0",
"description": "",
"main": "index.js",
Expand Down

0 comments on commit ee29512

Please sign in to comment.