I am using Express as my Node.js web framework with MongoDB as persistence layer. When I run the server with 'node app.js' command, and occasionally some error occur such as mongoose error or imagemagick error, the hole node process will die and not available from browser. I used Express' error handler but this is still happening. Can someone help?
-
What version of node are you using? I got around this using the clusters package and the process.on('death') message. Look at the example code for clusters on the node.js websiteControlAltDel– ControlAltDel2012-04-16 01:45:16 +00:00Commented Apr 16, 2012 at 1:45
-
1@zhangxuefeng post this as an answer and then accept it - that way, other people with the same problem will see that there is a solutionAdam Hopkinson– Adam Hopkinson2012-04-16 08:49:31 +00:00Commented Apr 16, 2012 at 8:49
-
Duplicate of stackoverflow.com/questions/5999373/…TiansHUo– TiansHUo2012-04-16 09:59:16 +00:00Commented Apr 16, 2012 at 9:59
Add a comment
|