add check for ipfs
This commit is contained in:
parent
a19a690d3d
commit
47736b6eed
|
@ -1,5 +1,6 @@
|
|||
var Web3 = require('web3');
|
||||
var async = require('async');
|
||||
var request = require('request');
|
||||
|
||||
var ServicesMonitor = function(options) {
|
||||
this.logger = options.logger;
|
||||
|
@ -41,8 +42,15 @@ ServicesMonitor.prototype.check = function() {
|
|||
},
|
||||
function checkIPFS(result, callback) {
|
||||
self.logger.trace('checkIPFS');
|
||||
|
||||
request('http://localhost:5001', function(error, response, body) {
|
||||
if (error) {
|
||||
result.push('IPFS'.red);
|
||||
} else {
|
||||
result.push('IPFS'.green);
|
||||
}
|
||||
callback(null, result);
|
||||
});
|
||||
},
|
||||
function checkDevServer(result, callback) {
|
||||
self.logger.trace('checkDevServer');
|
||||
|
|
Loading…
Reference in New Issue