Files
workh/backend/server.ts
T
2026-10-11 03:26:15 +03:00

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)));