Buffering and upload script

tags/dead/2015-03-18-new-upload
Michael Snoyman 8 years ago
parent 437818735c
commit ae05eaf8fd

@ -36,6 +36,7 @@ import Yesod.Default.Handlers
import Yesod.Default.Main
import System.Environment (getEnvironment)
import Data.BlobStore (HasBlobStore (..), BlobStore)
import System.IO (hSetBuffering, BufferMode (LineBuffering))
import qualified Echo
@ -218,6 +219,7 @@ cabalLoaderMain = do
pool <- Database.Persist.createPoolConfig dbconf
manager <- newManager
bs <- loadBlobStore manager conf
hSetBuffering stdout LineBuffering
runStdoutLoggingT $ appLoadCabalFiles
CabalLoaderEnv
{ cleSettings = conf

@ -0,0 +1,7 @@
#!/bin/bash -ex
cabal clean
cabal configure
cabal build
strip dist/build/cabal-loader-stackage/cabal-loader-stackage
scp dist/build/cabal-loader-stackage/cabal-loader-stackage jenkins.stackage.org:/private
Loading…
Cancel
Save