mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-02-17 01:12:20 +00:00
Use newrelic in production only
This commit is contained in:
parent
ac5a83d3be
commit
b871c5b97c
1 changed files with 6 additions and 2 deletions
8
index.js
8
index.js
|
@ -1,6 +1,11 @@
|
|||
"use strict";
|
||||
|
||||
require("newrelic");
|
||||
var env = process.env.NODE_ENV || "development";
|
||||
|
||||
if (env === "production") {
|
||||
require("newrelic");
|
||||
}
|
||||
|
||||
var fs = require("fs");
|
||||
var path = require("path");
|
||||
var express = require("express");
|
||||
|
@ -8,7 +13,6 @@ var app = express();
|
|||
var server = require('http').Server(app);
|
||||
var io = require('socket.io')(server);
|
||||
var config = require(path.join(__dirname, "config/config.js"));
|
||||
var env = process.env.NODE_ENV || "development";
|
||||
|
||||
// Load Models
|
||||
require(path.join(__dirname, "db/index"));
|
||||
|
|
Loading…
Reference in a new issue