aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2023-01-22 17:30:34 +0100
committerstuebinm2023-01-22 17:30:34 +0100
commit53e7884ec03e870431064062519d3a94302bc480 (patch)
tree3c5c57da2db0856a19392b3d6cfe3ae5f2847e68
parent6c2454fb9edff9bdd34415e58a2a3782a984ec5a (diff)
config: prefer env vars
Diffstat (limited to '')
-rw-r--r--app/Main.hs2
1 files changed, 1 insertions, 1 deletions
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