fix: run API as container primary process
This commit is contained in:
@@ -16,6 +16,7 @@ async function start() {
|
||||
|
||||
for (const signal of ['SIGINT', 'SIGTERM']) {
|
||||
process.once(signal, () => {
|
||||
app.log.info({ signal }, 'Shutdown signal received');
|
||||
app.close()
|
||||
.then(closePool)
|
||||
.finally(() => process.exit(0));
|
||||
|
||||
Reference in New Issue
Block a user