Skip to content

Commit

Permalink
fix: exit server on SIGTERM
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewL246 committed Jul 2, 2024
1 parent 8318cf1 commit d898537
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
process.title = 'Pretendo - Website';
process.on('SIGTERM', () => {
process.exit(0);
});

const express = require('express');
const handlebars = require('express-handlebars');
Expand Down

0 comments on commit d898537

Please sign in to comment.