fix: abserve pm2 daemon before running dashboard.

This commit is contained in:
Tjatse 2015-12-28 17:08:40 +08:00
parent 81282502a2
commit 60cfdbf178
3 changed files with 3 additions and 3 deletions

View File

@ -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);
};

View File

@ -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

View File

@ -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);
}