From 53e7884ec03e870431064062519d3a94302bc480 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 22 Jan 2023 17:30:34 +0100 Subject: config: prefer env vars --- app/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/Main.hs b/app/Main.hs index f99a198..7d0e41a 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -29,12 +29,12 @@ main :: IO () main = do confconfig <- pure emptyConfig >>= addSource ConfCLI.fromConfig + >>= addSource (ConfEnv.fromConfig "tracktrain") -- for some reason the yaml source fails if the file does not exist, but json works fine >>= (\c -> ifM (doesFileExist "./config.yaml") (addSource (ConfYaml.fromFilePath "./config.yaml") c) (pure c)) >>= addSource (ConfAeson.fromFilePath "./config.json") - >>= addSource (ConfEnv.fromConfig "tracktrain") settings@ServerConfig{..} <- fetch confconfig -- cgit v1.2.3