mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 21:57:03 +00:00
require newrelic as the first thing on startup
This commit is contained in:
parent
f4d66c7384
commit
d3e1a415a8
2 changed files with 2 additions and 3 deletions
|
|
@ -174,6 +174,8 @@ module.exports.setupConfig = function(){
|
|||
|
||||
if (nconf.get('NODE_ENV') === "development")
|
||||
Error.stackTraceLimit = Infinity;
|
||||
if (nconf.get('NODE_ENV') === 'production')
|
||||
require('newrelic');
|
||||
|
||||
isProd = nconf.get('NODE_ENV') === 'production';
|
||||
baseUrl = nconf.get('BASE_URL');
|
||||
|
|
|
|||
|
|
@ -21,9 +21,6 @@ if (cores!==0 && cluster.isMaster && (isDev || isProd)) {
|
|||
});
|
||||
|
||||
} else {
|
||||
if (nconf.get('NODE_ENV') === 'production')
|
||||
require('newrelic');
|
||||
|
||||
var express = require("express");
|
||||
var http = require("http");
|
||||
var path = require("path");
|
||||
|
|
|
|||
Loading…
Reference in a new issue