Introduction
Introduction Statistics Contact Development Disclaimer Help
nr fix - seedlinux - Torrent indexing tool opensource torrents with share ratio…
Log
Files
Refs
README
---
commit 44df8657953f43f9514a953ddc9225c3904b4be1
parent 2861a2c16e5c6aade1cba0c4bc76b820d6367203
Author: Jay Scott <[email protected]>
Date: Thu, 6 Jul 2017 20:37:25 +0100
nr fix
Diffstat:
M app.js | 4 ++++
D newrelic.js | 26 --------------------------
2 files changed, 4 insertions(+), 26 deletions(-)
---
diff --git a/app.js b/app.js
@@ -1,5 +1,9 @@
'use strict';
+if(process.env.NODE_ENV === 'production') {
+ require('newrelic');
+}
+
const express = require('express');
const path = require('path');
const logger = require('morgan');
diff --git a/newrelic.js b/newrelic.js
@@ -1,26 +0,0 @@
-'use strict';
-
-/**
- * New Relic agent configuration.
- *
- * See lib/config.default.js in the agent distribution for a more complete
- * description of configuration variables and their potential values.
- */
-exports.config = {
- /**
- * Array of application names.
- */
- app_name: ['seedlinux'],
- /**
- * Your New Relic license key.
- */
- license_key: process.env.NR_KEY,
- logging: {
- /**
- * Level at which to log. 'trace' is most useful to New Relic when diagnos…
- * issues with the agent, 'info' and higher will impose the least overhead…
- * production applications.
- */
- level: 'info'
- }
-}
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.