feat(api): listen on SIGTERM for graceful shutdown

This commit is contained in:
Julian Tölle 2020-05-03 04:32:43 +02:00
parent 202665a510
commit d58cb46f3e

View file

@ -5,6 +5,7 @@ import { AppModule } from "./app.module";
async function bootstrap() {
const app = await NestFactory.create<NestExpressApplication>(AppModule);
app.enableShutdownHooks();
// Setup API Docs
const options = new DocumentBuilder()