mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
enable newrelic
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
"mongoose": "~3.8.23",
|
"mongoose": "~3.8.23",
|
||||||
"mongoose-id-autoinc": "~2013.7.14-4",
|
"mongoose-id-autoinc": "~2013.7.14-4",
|
||||||
"nconf": "~0.6.9",
|
"nconf": "~0.6.9",
|
||||||
"newrelic": "~1.23.0",
|
"newrelic": "~1.25.0",
|
||||||
"nib": "~1.0.1",
|
"nib": "~1.0.1",
|
||||||
"nodemailer": "~0.5.2",
|
"nodemailer": "~0.5.2",
|
||||||
"pageres": "^1.0.1",
|
"pageres": "^1.0.1",
|
||||||
|
|||||||
@@ -174,8 +174,8 @@ module.exports.setupConfig = function(){
|
|||||||
|
|
||||||
if (nconf.get('NODE_ENV') === "development")
|
if (nconf.get('NODE_ENV') === "development")
|
||||||
Error.stackTraceLimit = Infinity;
|
Error.stackTraceLimit = Infinity;
|
||||||
//if (nconf.get('NODE_ENV') === 'production')
|
if (nconf.get('NODE_ENV') === 'production')
|
||||||
//require('newrelic');
|
require('newrelic');
|
||||||
|
|
||||||
isProd = nconf.get('NODE_ENV') === 'production';
|
isProd = nconf.get('NODE_ENV') === 'production';
|
||||||
baseUrl = nconf.get('BASE_URL');
|
baseUrl = nconf.get('BASE_URL');
|
||||||
|
|||||||
Reference in New Issue
Block a user