recator placement of code

This commit is contained in:
2026-02-17 11:46:57 -06:00
parent 31f8c368d9
commit 23c000fa7f
77 changed files with 4528 additions and 2697 deletions

View File

@@ -1,10 +1,11 @@
import { createServer } from "node:http";
import os from "node:os";
import createApp from "./app.js";
import { startDatamartSync } from "./src/datamart/datamartSync.controller.js";
import { createLogger } from "./src/logger/logger.controller.js";
import { connectProdSql } from "./src/prodSql/prodSqlConnection.controller.js";
import { setupSocketIORoutes } from "./src/socket.io/serverSetup.js";
import { startDatamartSync } from "./datamart/datamartSync.controller.js";
import { createLogger } from "./logger/logger.controller.js";
import { monitorReleaseChanges } from "./opendock/utils/releaseMonitor.utils.js";
import { connectProdSql } from "./prodSql/prodSqlConnection.controller.js";
import { setupSocketIORoutes } from "./socket.io/serverSetup.js";
const port = Number(process.env.PORT) || 3000;
@@ -13,7 +14,12 @@ const start = async () => {
// triggering long lived processes
connectProdSql();
startDatamartSync();
startDatamartSync(); // TODO: Remove this and all the other data related to it as we dont want this idea anymore
// start long live processes
setTimeout(() => {
monitorReleaseChanges(); // this is od monitoring the db for all new releases
}, 5 * 1000);
const { app, baseUrl } = await createApp();