Disable yesod devel timeout by default
This commit is contained in:
parent
a357922d39
commit
e68ea6a3b9
@ -123,7 +123,10 @@ reverseProxy opts iappPort = do
|
||||
return $ Right $ ProxyDest "127.0.0.1" appPort)
|
||||
def
|
||||
{ wpsOnExc = onExc
|
||||
, wpsTimeout = Just (1000000 * proxyTimeout opts)
|
||||
, wpsTimeout =
|
||||
if proxyTimeout opts == 0
|
||||
then Nothing
|
||||
else Just (1000000 * proxyTimeout opts)
|
||||
}
|
||||
manager
|
||||
putStrLn "Reverse proxy stopped, but it shouldn't"
|
||||
|
||||
@ -148,8 +148,8 @@ develOptions = Devel <$> switch ( long "disable-api" <> short 'd'
|
||||
<*> extraCabalArgs
|
||||
<*> option ( long "port" <> short 'p' <> value 3000 <> metavar "N"
|
||||
<> help "Devel server listening port" )
|
||||
<*> option ( long "proxy-timeout" <> short 'x' <> value 10 <> metavar "N"
|
||||
<> help "Devel server timeout before returning 'not ready' message (in seconds)" )
|
||||
<*> option ( long "proxy-timeout" <> short 'x' <> value 0 <> metavar "N"
|
||||
<> help "Devel server timeout before returning 'not ready' message (in seconds, 0 for none)" )
|
||||
|
||||
extraCabalArgs :: Parser [String]
|
||||
extraCabalArgs = many (strOption ( long "extra-cabal-arg" <> short 'e' <> metavar "ARG"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user