diff --git a/server/src/index.ts b/server/src/index.ts index 3e60338..94373d1 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -232,4 +232,8 @@ server.listen(PORT, () => { console.log(`Server listening on ${HOST}, port ${PORT}`); }); -console.log(process.env.API_KEY) \ No newline at end of file +// Umožníme vypnutí serveru přes SIGINT, jinak Docker čeká než ho sestřelí +process.on('SIGINT', function () { + console.log("\nSIGINT (Ctrl-C), vypínám server"); + process.exit(0); +}); \ No newline at end of file