aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-01-11 13:42:24 -0800
committerAdam Soltys <[email protected]>2021-01-11 13:42:24 -0800
commitdb09ca0ec48a88bed6257212bb298d688b9e2f25 (patch)
tree8c2d8e7da1d5139e0d472e23d69c4c0665f4549e
parent7e4b18672330a157483986914acfb9afeaef1a57 (diff)
downloadcoinos-server-db09ca0ec48a88bed6257212bb298d688b9e2f25.tar.gz
coinos-server-db09ca0ec48a88bed6257212bb298d688b9e2f25.zip
exit on sigint, fix nodemon
-rw-r--r--index.js2
1 files changed, 2 insertions, 0 deletions
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);