add basic cli app for bundling a headless ontime

This commit is contained in:
2024-06-03 21:54:14 -05:00
parent cf8c8d4b2e
commit 4af2e688d1
6 changed files with 344 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/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()
})