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

@@ -112,6 +112,5 @@
"CLOUDKARAFKA_USERNAME": "",
"CLOUDKARAFKA_PASSWORD": "",
"CLOUDKARAFKA_TOPIC_PREFIX": ""
},
"STACK_IMPACT_KEY": "aaaabbbbccccddddeeeeffffgggg111100002222"
}
}

11
package-lock.json generated
View File

@@ -13594,7 +13594,8 @@
"nan": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/nan/-/nan-2.6.2.tgz",
"integrity": "sha1-5P805slf37WuzAjeZZb0NgWn20U="
"integrity": "sha1-5P805slf37WuzAjeZZb0NgWn20U=",
"optional": true
},
"nanomatch": {
"version": "1.2.9",
@@ -19430,14 +19431,6 @@
"resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz",
"integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA="
},
"stackimpact": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/stackimpact/-/stackimpact-1.3.0.tgz",
"integrity": "sha512-D792tWVl/UMsnyLhAdaMCgtRhFbGvPtmLX1q5gyqmG+KK733xfAZgnJ4LuoJsCyvp/zvPGupsc3UldlVwa7VEg==",
"requires": {
"nan": "2.6.2"
}
},
"stat-mode": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-0.2.2.tgz",

View File

@@ -83,7 +83,6 @@
"rimraf": "^2.4.3",
"sass-loader": "^7.0.0",
"shelljs": "^0.8.1",
"stackimpact": "^1.3.0",
"stripe": "^5.8.0",
"superagent": "^3.4.3",
"svg-inline-loader": "^0.8.0",

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)