Files
workh/backend/server.ts
T

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