mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2026-03-22 01:34:14 -05:00
fix: exit server on SIGTERM
This commit is contained in:
parent
4374a5fedb
commit
73dab86fa5
|
|
@ -1,4 +1,7 @@
|
|||
process.title = 'Pretendo - Miiverse';
|
||||
process.on('SIGTERM', () => {
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
import express from 'express';
|
||||
import morgan from 'morgan';
|
||||
|
|
@ -78,4 +81,4 @@ async function main(): Promise<void> {
|
|||
});
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
||||
main().catch(console.error);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user