fix: handle SIGTERM in dashboard serve.js; always include API_URL in webpack build
This commit is contained in:
parent
f3fcede7f5
commit
9e65f05b23
2 changed files with 7 additions and 2 deletions
|
@ -17,3 +17,9 @@ fastify.listen({ port: 3002, host: '0.0.0.0' }, (err, address) => {
|
|||
}
|
||||
console.log(`Server listening on ${address}`);
|
||||
});
|
||||
|
||||
process.on("SIGTERM", () => {
|
||||
fastify.close().then(() => {
|
||||
process.exit(0);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue