Install Trace collector agent - seedlinux - Torrent indexing tool opensource torrents with share ratio's etc.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit e29b58df3d801237f6a29c031a91288cc091e892
(DIR) parent 89800db8e4d8275f42598eb0de3447ba1e94a2d3
(HTM) Author: Jay Scott <jay@jayscott.co.uk>
Date: Thu, 6 Jul 2017 22:46:41 +0100
Install Trace collector agent
Diffstat:
M app.js | 4 ----
M bin/www | 3 +++
M package.json | 2 +-
3 files changed, 4 insertions(+), 5 deletions(-)
---
(DIR) diff --git a/app.js b/app.js
@@ -1,9 +1,5 @@
'use strict';
-if(process.env.NODE_ENV === 'production') {
- require('@risingstack/trace');
-}
-
const express = require('express');
const path = require('path');
const logger = require('morgan');
(DIR) diff --git a/bin/www b/bin/www
@@ -3,6 +3,9 @@
/**
* Module dependencies.
*/
+if(process.env.NODE_ENV === 'production') {
+ require ('newrelic');
+}
var app = require('../app');
var debug = require('debug');
(DIR) diff --git a/package.json b/package.json
@@ -9,7 +9,6 @@
"start": "DEBUG=seedlinux:* node ./bin/www"
},
"dependencies": {
- "@risingstack/trace": "^3.14.0",
"async": "^2.5.0",
"body-parser": "^1.17.2",
"compression": "^1.6.2",
@@ -21,6 +20,7 @@
"helmet": "^3.6.1",
"mongoose": "4.10.8",
"morgan": "~1.8.1",
+ "newrelic": "^1.40.0",
"parse-torrent": "^5.8.3",
"pug": "^2.0.0-rc.2",
"webtorrent-health": "^1.1.1"