enable newrelic

This commit is contained in:
Matteo Pagliazzi
2016-02-21 22:02:37 +01:00
parent c95950c679
commit 4dfb24af6e
2 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@
"mongoose": "~3.8.23",
"mongoose-id-autoinc": "~2013.7.14-4",
"nconf": "~0.6.9",
"newrelic": "~1.23.0",
"newrelic": "~1.25.0",
"nib": "~1.0.1",
"nodemailer": "~0.5.2",
"pageres": "^1.0.1",

View File

@@ -174,8 +174,8 @@ module.exports.setupConfig = function(){
if (nconf.get('NODE_ENV') === "development")
Error.stackTraceLimit = Infinity;
//if (nconf.get('NODE_ENV') === 'production')
//require('newrelic');
if (nconf.get('NODE_ENV') === 'production')
require('newrelic');
isProd = nconf.get('NODE_ENV') === 'production';
baseUrl = nconf.get('BASE_URL');