Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
var dotenv = require('dotenv');
dotenv.load();

require('newrelic');

var express = require('express'),
path = require('path'),
favicon = require('serve-favicon'),
Expand Down
24 changes: 24 additions & 0 deletions newrelic.js
Original file line number Diff line number Diff line change
@@ -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: ['speakerthumbs'],
/**
* Your New Relic license key.
*/
license_key: process.env.NEW_RELIC_LICENSE_KEY,
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: 'trace'
}
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"jade": "~1.6.0",
"mongoose": "^3.8.21",
"morgan": "~1.3.0",
"newrelic": "^1.20.2",
"passport": "^0.2.1",
"passport-facebook": "^1.0.3",
"passport-github": "^0.1.5",
Expand Down
1 change: 1 addition & 0 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var host = process.env.AZK_HOST || process.env.HOST;
var port = process.env.HTTP_PORT || process.env.PORT;

var hostname = "http://" + host;

if (!process.env.AZK_HOST) {
hostname = hostname + ":" + port;
}
Expand Down