mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-09-08 19:37:28 -05:00
fix: exit process on SIGTERM
This commit is contained in:
@@ -3,6 +3,9 @@ process.on('uncaughtException', (err, origin) => {
|
||||
console.log(err);
|
||||
console.log(origin);
|
||||
});
|
||||
process.on('SIGTERM', () => {
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
import express from 'express';
|
||||
import morgan from 'morgan';
|
||||
|
||||
Reference in New Issue
Block a user