forked from liyupi/mianshiya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbaserc.json
78 lines (78 loc) · 1.7 KB
/
cloudbaserc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"version": "2.0",
"envId": "{{env.ENV_ID}}",
"$schema": "https://framework-1258016615.tcloudbaseapp.com/schema/latest.json",
"functionRoot": "cloudfunctions",
"functions": [
{
"name": "countUserScoreRank",
"runtime": "Nodejs10.15",
"triggers": [
{
"name": "countUserScoreRankTrigger",
"type": "timer",
"config": "0 0 2 * * * *"
}
]
},
{
"name": "redisService",
"runtime": "Nodejs10.15",
"vpc": {
"vpcId": "vpc-kk549o3q",
"subnetId": "subnet-2afgdncr"
}
},
{
"name": "esService",
"runtime": "Nodejs10.15",
"vpc": {
"vpcId": "vpc-kk549o3q",
"subnetId": "subnet-2afgdncr"
}
},
{
"name": "syncQuestionsToES",
"runtime": "Nodejs10.15",
"triggers": [
{
"name": "syncQuestionsToESTrigger",
"type": "timer",
"config": "5 * * * * * *",
"timeout": 900
}
]
}
],
"framework": {
"name": "mianshiya",
"plugins": {
"client": {
"use": "@cloudbase/framework-plugin-website",
"inputs": {
"buildCommand": "npm run build",
"outputPath": "dist",
"cloudPath": "/",
"envVariables": {
"REACT_APP_ENV_ID": "{{env.ENV_ID}}"
}
}
},
"auth": {
"use": "@cloudbase/framework-plugin-auth",
"inputs": {
"configs": [
{
"platform": "NONLOGIN",
"status": "DISABLE"
},
{
"platform": "ANONYMOUS",
"status": "ENABLE"
}
]
}
}
}
}
}