mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-15 12:07:43 +00:00
fix: Remove active handles (incompatible with node v4)
This commit is contained in:
parent
a007effddd
commit
b553a6c134
2 changed files with 0 additions and 10 deletions
|
|
@ -4,7 +4,6 @@
|
|||
"version": "0.0.0-152",
|
||||
"main": "./website/src/server.js",
|
||||
"dependencies": {
|
||||
"active-handles": "^1.1.0",
|
||||
"amazon-payments": "0.0.4",
|
||||
"amplitude": "^2.0.3",
|
||||
"async": "~0.9.0",
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ var isProd = nconf.get('NODE_ENV') === 'production';
|
|||
var isDev = nconf.get('NODE_ENV') === 'development';
|
||||
var DISABLE_LOGGING = nconf.get('DISABLE_REQUEST_LOGGING');
|
||||
var cores = +nconf.get("WEB_CONCURRENCY") || 0;
|
||||
var activeHandles = require('active-handles');
|
||||
var moment = require('moment');
|
||||
|
||||
if (cores!==0 && cluster.isMaster && (isDev || isProd)) {
|
||||
|
|
@ -165,12 +164,4 @@ if (cores!==0 && cluster.isMaster && (isDev || isProd)) {
|
|||
});
|
||||
|
||||
module.exports = server;
|
||||
|
||||
var logHandlesInterval = +nconf.get('LOG_HANDLES_INTERVAL');
|
||||
if (logHandlesInterval) { var activeHandleInterval = setInterval(logHandles, logHandlesInterval); }
|
||||
|
||||
function logHandles() {
|
||||
console.log(moment().format());
|
||||
activeHandles.print({highlight:false});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue