Merge pull request #2994 from spotify/rugvip/conflagrate

config-loader: switch to using --config options to load in config
This commit is contained in:
Patrik Oldsberg
2020-10-22 18:01:21 +02:00
committed by GitHub
38 changed files with 271 additions and 370 deletions
@@ -33,7 +33,7 @@ export async function startStandaloneServer(
options: ServerOptions,
): Promise<Server> {
const logger = options.logger.child({ service: 'auth-backend' });
const config = await loadBackendConfig({ logger });
const config = await loadBackendConfig({ logger, argv: process.argv });
const discovery = SingleHostDiscovery.fromConfig(config);
const database = useHotMemoize(module, () => {