remove stackimpact

This commit is contained in:
Matteo Pagliazzi
2018-04-30 19:07:46 +02:00
parent 8b9bf88fa0
commit ca73b9af41
4 changed files with 3 additions and 20 deletions

View File

@@ -12,7 +12,6 @@ const setupNconf = require('./libs/setupNconf');
setupNconf();
const nconf = require('nconf');
const stackimpact = require('stackimpact');
const cluster = require('cluster');
const logger = require('./libs/logger');
@@ -21,13 +20,6 @@ const IS_PROD = nconf.get('IS_PROD');
const IS_DEV = nconf.get('IS_DEV');
const CORES = Number(nconf.get('WEB_CONCURRENCY')) || 0;
if (IS_PROD) {
stackimpact.start({
agentKey: nconf.get('STACK_IMPACT_KEY'),
appName: 'Habitica',
});
}
// Setup the cluster module
if (CORES !== 0 && cluster.isMaster && (IS_DEV || IS_PROD)) {
// Fork workers. If config.json has WEB_CONCURRENCY=x, use that - otherwise, use all cpus-1 (production)