mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
enable new relic, node 4 and npm 3
This commit is contained in:
parent
92fc2683c6
commit
8ea69e90dd
3 changed files with 6 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue