Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update newrelic config

  • Loading branch information...
commit 152c7020c25c2cbf2316d9a5d3154f305e5967d0 1 parent 4d66aca
@rrajkowski authored
View
5 server/config/config.js
@@ -2,14 +2,13 @@
// Utilize Lo-Dash utility library
var _ = require('lodash'),
- fs = require('fs'),
- nr = require('./newrelic');
+ fs = require('fs');
// Load configurations
// Set the node environment variable if not set before
process.env.NODE_ENV = ~fs.readdirSync('./server/config/env').map(function(file) {
return file.slice(0, -3);
-}).indexOf(process.env.NODE_ENV) ? process.env.NODE_ENV : 'production'; //development or production
+}).indexOf(process.env.NODE_ENV) ? process.env.NODE_ENV : 'production';
// Extend the base configuration in all.js with environment
// specific configuration
View
1  server/config/express.js
@@ -24,6 +24,7 @@ var express = require('express'),
util = require('meanio/lib/util'),
assetmanager = require('assetmanager'),
fs = require('fs'),
+ newrelic = require('./newrelic'),
Grid = require('gridfs-stream');
module.exports = function(app, passport, db) {
View
24 server/config/newrelic.js
@@ -0,0 +1,24 @@
+/**
+ * New Relic agent configuration.
+ *
+ * See lib/config.defaults.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 : ['Heroku App'],
+ /**
+ * Your New Relic license key.
+ */
+ license_key : 'b00cf6ec0b9a6262c5e537cde0867df11044c92a',
+ logging : {
+ /**
+ * Level at which to log. 'trace' is most useful to New Relic when diagnosing
+ * issues with the agent, 'info' and higher will impose the least overhead on
+ * production applications.
+ */
+ level : 'info'
+ }
+};
Please sign in to comment.
Something went wrong with that request. Please try again.