Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
keeleliin
keeleliin-wrapper
Commits
5285482b
Commit
5285482b
authored
Jul 24, 2015
by
priit
Browse files
EMFILE errori parandus
parent
787fb315
Changes
2
Hide whitespace changes
Inline
Side-by-side
package.json
View file @
5285482b
...
...
@@ -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
"
,
...
...
www/server.js
View file @
5285482b
...
...
@@ -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
){
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment