*Load env and arg configs after config files again to have them override in priority.

This commit is contained in:
Derrick Hammer 2022-09-22 07:51:58 -04:00
parent cd07913340
commit f8c19e2fd6
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -50,6 +50,11 @@ if (fs.existsSync(configDir)) {
}
}
config.load({
env: true,
argv: true,
});
for (const setting of ["domain"]) {
if (!config.get(setting)) {
errorExit(`Required config option ${setting} not set`);