From db09ca0ec48a88bed6257212bb298d688b9e2f25 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 11 Jan 2021 13:42:24 -0800 Subject: exit on sigint, fix nodemon --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index f0ce45c5..908666e3 100644 --- a/index.js +++ b/index.js @@ -99,3 +99,5 @@ app.use((err, req, res, next) => { server.listen(config.port, () => console.log(`CoinOS Server listening on port ${config.port}`) ); + +process.on("SIGINT", process.exit); -- cgit v1.2.3