mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 04:43:12 +03:00
eb718276e8
refs https://github.com/TryGhost/DevOps/issues/68 - we want New Relic to be one of the first modules to load so it can instrument the rest of our code - previously this would not have been the case, and it would have missed out on instrumenting the config and logging code - this moves the require to be the first step in the process if the PRO_ENV env var is set
7 lines
93 B
JavaScript
7 lines
93 B
JavaScript
// Load New Relic
|
|
if (process.env.PRO_ENV) {
|
|
require('newrelic');
|
|
}
|
|
|
|
require('./ghost');
|