Disable buffering to fix Docker logs

This commit is contained in:
Manuel 2021-05-13 06:25:21 +02:00
parent c186ecf521
commit 6d6f6f32aa
Signed by: SunRed
GPG Key ID: 4085037435E1F07A
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
module Main where
import System.IO (BufferMode (NoBuffering), hSetBuffering, stdout)
import Options.Applicative
import Myriad
@ -31,5 +32,6 @@ parseArgs = execParser $ info (helper <*> args) (fullDesc <> progDesc "Run the M
main :: IO ()
main = do
hSetBuffering stdout NoBuffering
Args { configPath, languagesDir } <- parseArgs
runMyriadServer configPath languagesDir