Commit 693955a0 authored by Guillaume Lebigot's avatar Guillaume Lebigot

Fix passage de configuration

parent 29651274
......@@ -100,7 +100,8 @@ function configureLocale() {
export async function configureBinaries(config) {
logger.info('[Launcher] Checking if binaries are available');
const binaries = await checkBinaries(config);
config = {...config, ...binaries};
setConfig(binaries);
}
function configureHost() {
......
......@@ -2,7 +2,7 @@
* @fileoverview Launcher source file
*/
import {asyncCheckOrMkdir, asyncExists, asyncRemove, asyncRename, asyncUnlink} from './_common/utils/files';
import {initConfig,configureBinaries} from './_common/utils/config';
import {getConfig,setConfig,initConfig,configureBinaries} from './_common/utils/config';
import clc from 'cli-color' ;
import {copy} from 'fs-extra';
import path from 'path';
......@@ -73,7 +73,7 @@ async function main() {
}
if (argv.generate) {
logger.info('[Launcher] Database generation manually triggered');
config.optGenerateDB = true;
setConfig({optGenerateDB: true});
}
logger.info('[Launcher] Loaded configuration file');
logger.debug('[Launcher] Loaded configuration : ' + JSON.stringify(config, null, '\n'));
......@@ -102,6 +102,7 @@ async function main() {
/**
* Calling engine.
*/
config = getConfig();
engine.SYSPATH = appPath;
engine.SETTINGS = config;
engine.i18n = i18n;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment