fix(core): Corrected typos and added missing keywords.

This commit is contained in:
2024-10-01 13:49:18 +02:00
parent 3b28c8befa
commit 9f9c543365
35 changed files with 123 additions and 162 deletions
+17 -2
View File
@@ -1,5 +1,6 @@
import * as plugins from './ffb.plugins.js';
import * as paths from './ffb.paths.js';
import * as plugins from './plugins.js';
import * as paths from './paths.js';
import { Reception } from './reception/classes.reception.js';
export const runCli = async () => {
const serviceQenv = new plugins.qenv.Qenv('./', './.nogit', false);
@@ -8,5 +9,19 @@ export const runCli = async () => {
domain: 'idp.global',
serveDir: paths.distWebDir,
});
// lets add the reception routes
const reception = new Reception({
name: (await serviceQenv.getEnvVarOnDemand('INSTANCE_NAME')) || 'idp.global',
mongoDescriptor: {
mongoDbUser: await serviceQenv.getEnvVarOnDemand('MONGO_DB_USER'),
mongoDbName: await serviceQenv.getEnvVarOnDemand('MONGO_DB_NAME'),
mongoDbPass: await serviceQenv.getEnvVarOnDemand('MONGO_DB_PASS'),
mongoDbUrl: await serviceQenv.getEnvVarOnDemand('MONGO_DB_URL'),
},
websiteServer: websiteServer,
});
await reception.start();
await websiteServer.start();
};