Commit 5285482b authored by priit's avatar priit
Browse files

EMFILE errori parandus

parent 787fb315
......@@ -13,6 +13,7 @@
"debug": "~2.2.0",
"express": "~4.12.4",
"fs": "0.0.2",
"graceful-fs": "^4.1.2",
"jade": "~1.9.2",
"log4js": "^0.6.26",
"morgan": "~1.5.3",
......
......@@ -6,6 +6,12 @@ global.__base = __dirname + '/../';
var express = require('express');
var app = express();
var realFs = require('fs');
var gracefulFs = require('graceful-fs');
gracefulFs.gracefulify(realFs); //monkey-patch for EMFILE
var log4js = require('log4js');
var path = require('path');
var logger = require('morgan');
......@@ -52,9 +58,6 @@ app.use(errorhandlerMiddleware.error404);
/**
* Create HTTP server.
*/
function startCluster( instanceCount, cb ){
if(instanceCount == null){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment