diff options
author | stuebinm | 2023-01-22 17:30:34 +0100 |
---|---|---|
committer | stuebinm | 2023-01-22 17:30:34 +0100 |
commit | 53e7884ec03e870431064062519d3a94302bc480 (patch) | |
tree | 3c5c57da2db0856a19392b3d6cfe3ae5f2847e68 /app | |
parent | 6c2454fb9edff9bdd34415e58a2a3782a984ec5a (diff) |
config: prefer env vars
Diffstat (limited to 'app')
-rw-r--r-- | app/Main.hs | 2 |
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 |