Skip to content

Commit

Permalink
Merge pull request #70 from Rocketseat/chore/shutdown-hooks
Browse files Browse the repository at this point in the history
chore: Enable shutdown listeners
  • Loading branch information
pellizzetti authored Apr 18, 2022
2 parents c69fe1f + a5e75c3 commit 7a62dbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ async function bootstrap() {
app.useLogger(LoggerServiceInstance);
app.useGlobalInterceptors(new LoggerErrorInterceptor());
app.useGlobalPipes(new ValidationPipe());

app.enableShutdownHooks();

app.listen(3333).then(() => {
lightship.signalReady();
Expand Down

0 comments on commit 7a62dbd

Please sign in to comment.