mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
show loading message; immediatly check for services instead of waiting 5 secs
This commit is contained in:
parent
136f099b57
commit
0b88d2fa69
@ -1,4 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
console.log("starting embark...");
|
||||||
|
|
||||||
var Embark = require('..');
|
var Embark = require('..');
|
||||||
Embark.process(process.argv);
|
Embark.process(process.argv);
|
||||||
|
@ -91,6 +91,13 @@ var Embark = {
|
|||||||
self.logger.contractsState = Embark.monitor.setContracts;
|
self.logger.contractsState = Embark.monitor.setContracts;
|
||||||
self.logger.availableServices = Embark.monitor.availableServices;
|
self.logger.availableServices = Embark.monitor.availableServices;
|
||||||
self.logger.setStatus = Embark.monitor.setStatus.bind(Embark.monitor);
|
self.logger.setStatus = Embark.monitor.setStatus.bind(Embark.monitor);
|
||||||
|
|
||||||
|
if (options.useDashboard) {
|
||||||
|
self.logger.info('========================'.bold.green);
|
||||||
|
self.logger.info(('Welcome to Embark ' + Embark.version).yellow.bold);
|
||||||
|
self.logger.info('========================'.bold.green);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: do this after monitor is rendered
|
// TODO: do this after monitor is rendered
|
||||||
callback();
|
callback();
|
||||||
},
|
},
|
||||||
|
@ -13,6 +13,7 @@ var ServicesMonitor = function(options) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ServicesMonitor.prototype.startMonitor = function() {
|
ServicesMonitor.prototype.startMonitor = function() {
|
||||||
|
this.check();
|
||||||
this.monitor = setInterval(this.check.bind(this), this.interval);
|
this.monitor = setInterval(this.check.bind(this), this.interval);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user