File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ export default {
199
199
help : "Run with cluster, optionally set the number of processes default to os.cpus().length" ,
200
200
action : numberOrBoolParser ( "cluster" )
201
201
} ,
202
- "liveQuery.classNames " : {
202
+ "liveQuery" : {
203
203
help : "parse-server's LiveQuery configuration object" ,
204
204
action : objectParser
205
205
} ,
@@ -214,6 +214,10 @@ export default {
214
214
help : "Starts the liveQuery server" ,
215
215
action : booleanParser
216
216
} ,
217
+ "liveQueryPort" : {
218
+ help : 'Specific port to start the live query server' ,
219
+ action : numberParser ( "liveQueryPort" )
220
+ } ,
217
221
"liveQueryServerOptions" : {
218
222
help : "Live query server configuration options (will start the liveQuery server)" ,
219
223
action : objectParser
Original file line number Diff line number Diff line change @@ -35,7 +35,13 @@ function startServer(options, callback) {
35
35
36
36
var server = app . listen ( options . port , callback ) ;
37
37
if ( options . startLiveQueryServer || options . liveQueryServerOptions ) {
38
- ParseServer . createLiveQueryServer ( server , options . liveQueryServerOptions ) ;
38
+ let liveQueryServer = server ;
39
+ if ( options . liveQueryPort ) {
40
+ liveQueryServer = express ( ) . listen ( options . liveQueryPort , ( ) => {
41
+ console . log ( 'ParseLiveQuery listening on ' + options . liveQueryPort ) ;
42
+ } ) ;
43
+ }
44
+ ParseServer . createLiveQueryServer ( liveQueryServer , options . liveQueryServerOptions ) ;
39
45
}
40
46
var handleShutdown = function ( ) {
41
47
console . log ( 'Termination signal received. Shutting down.' ) ;
You can’t perform that action at this time.
0 commit comments