fix: exit process on SIGTERM

This commit is contained in:
Matthew Lopez
2024-06-24 15:32:48 -04:00
parent 41977cf7af
commit bdd8a91610

View File

@@ -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';