V2 integration (#293)

* feat: integrations and lifecycles

* refactor: prevent issues with start order
This commit is contained in:
Carlos Valente
2023-02-23 20:22:38 +01:00
committed by GitHub
parent d8a84ac88d
commit 70cc071425
61 changed files with 1510 additions and 687 deletions
+4 -4
View File
@@ -48,13 +48,13 @@ let tray = null;
try {
const ontimeServer = require(nodePath)
const { startServer, startOSCServer } = ontimeServer;
const { startDb, startServer, startOSCServer, startIntegrations } = ontimeServer;
await startDb();
// Start express server
loaded = await startServer();
// Start OSC Server
await startOSCServer();
await startIntegrations();
} catch (error) {
loaded = error;
}