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