summaryrefslogtreecommitdiff
path: root/server/Main.hs
diff options
context:
space:
mode:
authorstuebinm2022-02-07 20:44:06 +0100
committerstuebinm2022-02-07 20:44:06 +0100
commit3a109e79363b52e22da35aaecf666014a75fcb63 (patch)
treee9750fe27fcd004f16054dfd4704283785888578 /server/Main.hs
parent729a1983372ed23ec0ceeeb1acdadc6e6989b37a (diff)
server: simple toml config
Diffstat (limited to '')
-rw-r--r--server/Main.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/Main.hs b/server/Main.hs
index ecaf6b7..0fbc4b4 100644
--- a/server/Main.hs
+++ b/server/Main.hs
@@ -71,7 +71,6 @@ app config =
main :: IO ()
main = do
+ config' <- loadConfig "./config.toml"
state <- newMVar defaultState
- let config = Config "/tmp" 8080 "main.json" "./config.json"
- config' <- loadConfig config
- run (port config) (app config' state)
+ run (port config') (app config' state)