Cleanup
This commit is contained in:
parent
95c93012be
commit
21c312dcda
|
@ -7,7 +7,7 @@ const server = app.listen(PORT, () =>
|
||||||
console.log(`Express server listening on port ${PORT}`)
|
console.log(`Express server listening on port ${PORT}`)
|
||||||
);
|
);
|
||||||
|
|
||||||
process.on("SIGTERM", (code) => {
|
process.on("SIGTERM", () => {
|
||||||
server.close(() => {
|
server.close(() => {
|
||||||
console.log('Server closed.');
|
console.log('Server closed.');
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
|
Loading…
Reference in New Issue