fix: exit server on SIGTERM

This commit is contained in:
Matthew Lopez 2024-07-02 15:09:13 -04:00
parent 4374a5fedb
commit 73dab86fa5
No known key found for this signature in database
GPG Key ID: 302A6EE3D63B7E0E

View File

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