File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,6 @@ if (program.args.length > 0 ) {
42
42
console . log ( `Configuation loaded from ${ jsonPath } ` )
43
43
}
44
44
45
- if ( ! program . appId || ! program . masterKey || ! program . serverURL ) {
46
- program . outputHelp ( ) ;
47
- console . error ( "" ) ;
48
- console . error ( colors . red ( "ERROR: appId, masterKey and serverURL are required" ) ) ;
49
- console . error ( "" ) ;
50
- process . exit ( 1 ) ;
51
- }
52
-
53
45
options = Object . keys ( definitions ) . reduce ( function ( options , key ) {
54
46
if ( program [ key ] ) {
55
47
options [ key ] = program [ key ] ;
@@ -61,6 +53,14 @@ if (!options.serverURL) {
61
53
options . serverURL = `http://localhost:${ options . port } ${ options . mountPath } ` ;
62
54
}
63
55
56
+ if ( ! options . appId || ! options . masterKey || ! options . serverURL ) {
57
+ program . outputHelp ( ) ;
58
+ console . error ( "" ) ;
59
+ console . error ( colors . red ( "ERROR: appId, masterKey and serverURL are required" ) ) ;
60
+ console . error ( "" ) ;
61
+ process . exit ( 1 ) ;
62
+ }
63
+
64
64
const app = express ( ) ;
65
65
const api = new ParseServer ( options ) ;
66
66
app . use ( options . mountPath , api ) ;
You can’t perform that action at this time.
0 commit comments