fix: config service precedence

This commit is contained in:
Mir Arif Hasan
2023-11-28 13:34:26 +06:00
parent ef8412544a
commit 9f62ed6c90
13 changed files with 105 additions and 42 deletions

View File

@@ -16,7 +16,7 @@ export async function loadInfraConfiguration() {
environmentObject[infraConfig.name] = infraConfig.value;
});
return environmentObject;
return { INFRA: environmentObject };
}
/**
@@ -24,7 +24,10 @@ export async function loadInfraConfiguration() {
* (Docker will re-start the app)
*/
export function stopApp() {
console.log('Stopping app in 5 seconds...');
setTimeout(() => {
console.log('Stopping app now...');
process.exit();
}, 5000);
}