fixed exit issue: https://github.com/nodejs/node-v0.x-archive/issues/9131
parent
066167dc21
commit
adb973503d
|
@ -12,5 +12,7 @@ app.post('/', jsonParser, function(req, res){
|
|||
res.end();
|
||||
});
|
||||
|
||||
process.on("SIGTERM", () => process.exit(1))
|
||||
process.on("SIGINT", () => process.exit(1))
|
||||
|
||||
app.listen(8080, () => console.log('Listening on http://127.0.0.1:8080'));
|
||||
|
|
Loading…
Reference in New Issue