Don't generate Hoogle databases on server (should have already been there...)

This commit is contained in:
Michael Snoyman 2015-01-06 11:16:25 +02:00
parent 2f0b328614
commit e1f844b399

View File

@ -237,6 +237,7 @@ makeFoundation useEcho conf = do
let updateDB = lookup "STACKAGE_CABAL_LOADER" env /= Just "0"
hoogleGen = lookup "STACKAGE_HOOGLE_GEN" env /= Just "0"
forceUpdate = lookup "STACKAGE_FORCE_UPDATE" env == Just "1"
loadCabalFiles' = appLoadCabalFiles updateDB forceUpdate foundation dbconf p
@ -249,7 +250,7 @@ makeFoundation useEcho conf = do
loadCabalFiles'
liftIO $ createHoogleDatabases blobStore' runDB' putStrLn urlRender'
when hoogleGen $ liftIO $ createHoogleDatabases blobStore' runDB' putStrLn urlRender'
liftIO $ threadDelay $ 30 * 60 * 1000000
return foundation