From d58cb46f3ed3812a017b609f6929f61923573385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sun, 3 May 2020 04:32:43 +0200 Subject: [PATCH] feat(api): listen on SIGTERM for graceful shutdown --- src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.ts b/src/main.ts index ee25cfa..31354e7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,6 +5,7 @@ import { AppModule } from "./app.module"; async function bootstrap() { const app = await NestFactory.create(AppModule); + app.enableShutdownHooks(); // Setup API Docs const options = new DocumentBuilder()