diff options
| author | Adam Soltys <[email protected]> | 2021-01-11 13:42:24 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-01-11 13:42:24 -0800 |
| commit | db09ca0ec48a88bed6257212bb298d688b9e2f25 (patch) | |
| tree | 8c2d8e7da1d5139e0d472e23d69c4c0665f4549e /index.js | |
| parent | 7e4b18672330a157483986914acfb9afeaef1a57 (diff) | |
| download | coinos-server-db09ca0ec48a88bed6257212bb298d688b9e2f25.tar.gz coinos-server-db09ca0ec48a88bed6257212bb298d688b9e2f25.zip | |
exit on sigint, fix nodemon
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
