mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
Don't generate Hoogle databases on server (should have already been there...)
This commit is contained in:
parent
2f0b328614
commit
e1f844b399
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user