-
Notifications
You must be signed in to change notification settings - Fork 64
/
cloudbaserc.json
84 lines (84 loc) · 2.37 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
79
80
81
82
83
84
{
"version": "2.0",
"envId": "{{env.ENV_ID}}",
"$schema": "https://framework-1258016615.tcloudbaseapp.com/schema/latest.json",
"functionRoot": "cloud/functions",
"framework": {
"name": "hiface-starter",
"plugins": {
"client": {
"use": "@cloudbase/framework-plugin-website",
"inputs": {
"buildCommand": "cd taro && SERVER_ENV={{env.SERVER_ENV}} npm run release:web",
"outputPath": "taro/dist-h5/",
"cloudPath": "/",
"envVariables": {
"SERVER_ENV": "{{env.SERVER_ENV}}"
}
}
},
"miniprogram": {
"use": "@cloudbase/framework-plugin-mp",
"inputs": {
"commands": {
"install": "cd taro && npm install",
"build": "cd taro && SERVER_ENV={{env.SERVER_ENV}} npm run release"
},
"appid": "{{env.APP_ID}}",
"privateKeyPath": "miniprogram-private.key",
"localPath": "./",
"ignores": ["node_modules/**/*"],
"deployMode": "preview",
"previewOptions": {
"desc": "CloudBase Framework 一键预览",
"qrcodeOutputPath": "./qrcode.jpg",
"pagePath": "pages/avatar-edit/avatar-edit"
}
}
},
"server": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "cloud/functions",
"functions": [
{
"name": "hiface-api",
"config": {
"timeout": 20,
"envVariables": {},
"runtime": "Nodejs10.15",
"memorySize": 256
}
},
{
"name": "analyze-face",
"config": {
"timeout": 20,
"envVariables": {},
"runtime": "Nodejs10.15",
"memorySize": 512
}
}
]
}
},
"db": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "cloud/functions",
"functions": [
{
"name": "cms-schemas-v2",
"config": {
"timeout": 20,
"envVariables": {},
"runtime": "Nodejs10.15",
"memorySize": 256
}
}
]
}
}
}
}
}