aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-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