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 {
199199 help : "Run with cluster, optionally set the number of processes default to os.cpus().length" ,
200200 action : numberOrBoolParser ( "cluster" )
201201 } ,
202- "liveQuery.classNames " : {
202+ "liveQuery" : {
203203 help : "parse-server's LiveQuery configuration object" ,
204204 action : objectParser
205205 } ,
@@ -214,6 +214,10 @@ export default {
214214 help : "Starts the liveQuery server" ,
215215 action : booleanParser
216216 } ,
217+ "liveQueryPort" : {
218+ help : 'Specific port to start the live query server' ,
219+ action : numberParser ( "liveQueryPort" )
220+ } ,
217221 "liveQueryServerOptions" : {
218222 help : "Live query server configuration options (will start the liveQuery server)" ,
219223 action : objectParser
Original file line number Diff line number Diff line change @@ -35,7 +35,13 @@ function startServer(options, callback) {
3535
3636 var server = app . listen ( options . port , callback ) ;
3737 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 ) ;
3945 }
4046 var handleShutdown = function ( ) {
4147 console . log ( 'Termination signal received. Shutting down.' ) ;
You can’t perform that action at this time.
0 commit comments