Link K8S deps properly
This commit is contained in:
parent
0ac77cdb15
commit
f0260fc819
64 changed files with 4282 additions and 3069 deletions
|
@ -6,13 +6,14 @@ import { INFO, OK, logInfo } from "../util/logging.js";
|
|||
|
||||
// Import Core Modules
|
||||
import buildRoutes from "../routes/router.js";
|
||||
import buildPostgres from "../database/postgres.js";
|
||||
import pg from "../database/postgres.js";
|
||||
import injectSockets from "../sockets/socket-server.js";
|
||||
import JobManager from "../jobs/JobManager.js";
|
||||
import buildRabbiteer from "../rabbit/rabbit-workers.js";
|
||||
|
||||
// Constants
|
||||
const title = "QLTR";
|
||||
const rabbiteerEnabled = process.env.QUALITEER_RABBITEER_ENABLED !== "false";
|
||||
const port = process.env.QUALITEER_DEV_PORT ?? 52000;
|
||||
|
||||
// Class
|
||||
|
@ -27,7 +28,7 @@ export default class Qualiteer {
|
|||
logInfo(fig.textSync(title, "Cyberlarge"));
|
||||
INFO("INIT", "Initializing...");
|
||||
this.app = express();
|
||||
this.pg = buildPostgres();
|
||||
this.pg = pg;
|
||||
this.server = http.createServer(this.app);
|
||||
this.sockets = injectSockets(this.server, this.jobs);
|
||||
this.routes = buildRoutes(this.pg, this.sockets);
|
||||
|
@ -37,7 +38,8 @@ export default class Qualiteer {
|
|||
|
||||
async _connect() {
|
||||
await this.pg.connect();
|
||||
// await this.rabbiteer.connect();
|
||||
if (!rabbiteerEnabled) return;
|
||||
await this.rabbiteer.connect();
|
||||
}
|
||||
|
||||
start() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue