You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/cli/cli-definitions.js
+58-25Lines changed: 58 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
exportdefault{
2
-
"appId": {
2
+
"appId": {
3
3
env: "PARSE_SERVER_APPLICATION_ID",
4
4
help: "Your Parse Application ID",
5
5
required: true
6
6
},
7
-
"masterKey": {
7
+
"masterKey": {
8
8
env: "PARSE_SERVER_MASTER_KEY",
9
9
help: "Your Parse Master Key",
10
10
required: true
@@ -21,53 +21,59 @@ export default {
21
21
returnopt;
22
22
}
23
23
},
24
-
"databaseURI": {
24
+
"databaseURI": {
25
25
env: "PARSE_SERVER_DATABASE_URI",
26
26
help: "The full URI to your mongodb database"
27
27
},
28
-
"serverURL": {
28
+
"serverURL": {
29
29
env: "PARSE_SERVER_URL",
30
30
help: "URL to your parse server with http:// or https://.",
31
31
},
32
-
"clientKey": {
32
+
"clientKey": {
33
33
env: "PARSE_SERVER_CLIENT_KEY",
34
34
help: "Key for iOS, MacOS, tvOS clients"
35
35
},
36
-
"javascriptKey": {
36
+
"javascriptKey": {
37
37
env: "PARSE_SERVER_JAVASCRIPT_KEY",
38
38
help: "Key for the Javascript SDK"
39
-
},
40
-
"restAPIKey": {
39
+
},
40
+
"restAPIKey": {
41
41
env: "PARSE_SERVER_REST_API_KEY",
42
42
help: "Key for REST calls"
43
-
},
44
-
"dotNetKey": {
43
+
},
44
+
"dotNetKey": {
45
45
env: "PARSE_SERVER_DOT_NET_KEY",
46
46
help: "Key for Unity and .Net SDK"
47
-
},
48
-
"cloud": {
47
+
},
48
+
"cloud": {
49
49
env: "PARSE_SERVER_CLOUD_CODE_MAIN",
50
50
help: "Full path to your cloud code main.js"
51
-
},
51
+
},
52
52
"push": {
53
53
env: "PARSE_SERVER_PUSH",
54
54
help: "Configuration for push, as stringified JSON. See https://github.com/ParsePlatform/parse-server/wiki/Push",
55
55
action: function(opt){
56
+
if(typeofopt=='object'){
57
+
returnopt;
58
+
}
56
59
returnJSON.parse(opt)
57
60
}
58
61
},
59
-
"oauth": {
62
+
"oauth": {
60
63
env: "PARSE_SERVER_OAUTH_PROVIDERS",
61
64
help: "Configuration for your oAuth providers, as stringified JSON. See https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#oauth",
62
65
action: function(opt){
66
+
if(typeofopt=='object'){
67
+
returnopt;
68
+
}
63
69
returnJSON.parse(opt)
64
70
}
65
71
},
66
-
"fileKey": {
72
+
"fileKey": {
67
73
env: "PARSE_SERVER_FILE_KEY",
68
74
help: "Key for your files",
69
-
},
70
-
"facebookAppIds": {
75
+
},
76
+
"facebookAppIds": {
71
77
env: "PARSE_SERVER_FACEBOOK_APP_IDS",
72
78
help: "Comma separated list for your facebook app Ids",
73
79
type: "list",
@@ -81,7 +87,7 @@ export default {
81
87
action: function(opt){
82
88
if(opt=="true"||opt=="1"){
83
89
returntrue;
84
-
}
90
+
}
85
91
returnfalse;
86
92
}
87
93
},
@@ -95,22 +101,49 @@ export default {
95
101
returnfalse;
96
102
}
97
103
},
98
-
"mountPath": {
104
+
"mountPath": {
99
105
env: "PARSE_SERVER_MOUNT_PATH",
100
106
help: "Mount path for the server, defaults to /parse",
101
107
default: "/parse"
102
108
},
103
-
"databaseAdapter": {
104
-
env: "PARSE_SERVER_DATABASE_ADAPTER",
105
-
help: "Adapter module for the database sub-system"
106
-
},
107
109
"filesAdapter": {
108
110
env: "PARSE_SERVER_FILES_ADAPTER",
109
-
help: "Adapter module for the files sub-system"
111
+
help: "Adapter module for the files sub-system",
112
+
action: functionaction(opt){
113
+
if(typeofopt=='object'){
114
+
returnopt;
115
+
}
116
+
try{
117
+
returnJSON.parse(opt);
118
+
}catch(e){}
119
+
returnopt;
120
+
}
121
+
},
122
+
"emailAdapter": {
123
+
env: "PARSE_SERVER_EMAIL_ADAPTER",
124
+
help: "Adapter module for the email sending",
125
+
action: functionaction(opt){
126
+
if(typeofopt=='object'){
127
+
returnopt;
128
+
}
129
+
try{
130
+
returnJSON.parse(opt);
131
+
}catch(e){}
132
+
returnopt;
133
+
}
110
134
},
111
135
"loggerAdapter": {
112
136
env: "PARSE_SERVER_LOGGER_ADAPTER",
113
-
help: "Adapter module for the logging sub-system"
137
+
help: "Adapter module for the logging sub-system",
0 commit comments