mirror of
https://github.com/iritmaximus/workh.git
synced 2026-10-12 19:13:33 +03:00
10 lines
343 B
TypeScript
10 lines
343 B
TypeScript
import { createApp } from './app';
|
|
import { DATA_DIR, PORT } from './config';
|
|
|
|
const server = createApp().listen(PORT, () => {
|
|
console.log(`workh listening on http://localhost:${PORT} (data: ${DATA_DIR})`);
|
|
});
|
|
|
|
// Exit promptly when Kubernetes / Docker stops the container.
|
|
process.on('SIGTERM', () => server.close(() => process.exit(0)));
|