fix: abserve pm2 daemon before running dashboard.
This commit is contained in:
parent
81282502a2
commit
60cfdbf178
|
|
@ -469,9 +469,9 @@ Monitor.prototype._broadcast = function (event, data, nsp) {
|
|||
nsp = nsp || conf.NSP.SYS;
|
||||
|
||||
if (this._noClient) {
|
||||
return console.warn('No client is connecting, ignore broadcasting', event, 'to', nsp)
|
||||
return console.debug('No client is connecting, ignore broadcasting', event, 'to', nsp)
|
||||
}
|
||||
console.info('Broadcasting', event, 'to', nsp);
|
||||
console.debug('Broadcasting', event, 'to', nsp);
|
||||
this._sockio.of(nsp).emit(event, data);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -51,4 +51,3 @@ level = log
|
|||
; pm2@172 = 192.168.1.172:9001
|
||||
; pm2@173 = 192.168.1.173:9000
|
||||
;
|
||||
pm2@107 = AuTh107@211.103.198.107:8088
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ function startAgent(confFile) {
|
|||
var sockio = socketIO();
|
||||
sockio.listen(options.port);
|
||||
monitor.sockio = sockio;
|
||||
monitor.run();
|
||||
console.info('Socket.io server is listening on 0.0.0.0:' + options.port);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue