enable new relic, node 4 and npm 3
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- '0.10'
|
||||
- '4.1'
|
||||
before_install:
|
||||
- "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10"
|
||||
- "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list"
|
||||
|
||||
+3
-2
@@ -62,7 +62,7 @@
|
||||
"mongoose-id-autoinc": "~2013.7.14-4",
|
||||
"morgan": "^1.6.1",
|
||||
"nconf": "~0.6.9",
|
||||
"newrelic": "~1.11.2",
|
||||
"newrelic": "~1.22.2",
|
||||
"nib": "~1.0.1",
|
||||
"nodemailer": "~0.5.2",
|
||||
"pageres": "^1.0.1",
|
||||
@@ -89,7 +89,8 @@
|
||||
},
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": "0.10.x"
|
||||
"node": "~4.1.1",
|
||||
"npm": "^3.3.4"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "gulp test",
|
||||
|
||||
@@ -174,8 +174,8 @@ module.exports.setupConfig = function(){
|
||||
|
||||
if (nconf.get('NODE_ENV') === "development")
|
||||
Error.stackTraceLimit = Infinity;
|
||||
//if (nconf.get('NODE_ENV') === 'production')
|
||||
// require('newrelic');
|
||||
if (nconf.get('NODE_ENV') === 'production')
|
||||
require('newrelic');
|
||||
|
||||
isProd = nconf.get('NODE_ENV') === 'production';
|
||||
baseUrl = nconf.get('BASE_URL');
|
||||
|
||||
Reference in New Issue
Block a user