Browse Source

Buffering and upload script

tags/dead/2015-03-18-new-upload
Michael Snoyman 7 years ago
parent
commit
ae05eaf8fd
  1. 2
      Application.hs
  2. 7
      upload-cabal-loader.sh

2
Application.hs

@ -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

7
upload-cabal-loader.sh

@ -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