mirror of
https://github.com/iritmaximus/workh.git
synced 2026-10-12 19:13:33 +03:00
Initial commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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)));
|
||||
Reference in New Issue
Block a user