mirror of
https://github.com/cpvalente/ontime.git
synced 2026-07-26 10:38:55 +00:00
21 lines
416 B
JavaScript
21 lines
416 B
JavaScript
#!/usr/bin/env node
|
|
|
|
// NOTE: for now the following needs to be in place: ./server/index.cjs, ./client, ./external
|
|
|
|
const ontimeServer = require('./server/index.cjs');
|
|
const { initAssets, startServer, startIntegrations, shutdown } = ontimeServer;
|
|
|
|
async function startOntime() {
|
|
await initAssets();
|
|
|
|
await startServer();
|
|
|
|
await startIntegrations();
|
|
}
|
|
|
|
startOntime();
|
|
|
|
process.on('SIGINT',()=>{
|
|
shutdown()
|
|
})
|