3 const Promise = require('bluebird');
4 const request = Promise.promisify(require('request'));
6 const { config } = require('gitter-web-env');
8 const HEALTH_CHECK_URLS = [config.get('basepath')];
10 HEALTH_CHECK_URLS.forEach(healthCheckUrl => {
16 // eslint-disable-next-line no-console
17 console.log(`STATUS ${healthCheckUrl}: ${res.statusCode}`);
18 if (res.statusCode === 200) {
25 // eslint-disable-next-line no-console
26 console.error(`Error while trying to connect to ${healthCheckUrl}:`, err, err.stack);