Fix a broken build

This commit is contained in:
Michael Snoyman 2011-12-20 16:26:08 +02:00
parent 5fdab3b731
commit bba851b8cf
3 changed files with 9 additions and 6 deletions

View File

@ -47,7 +47,7 @@ defaultMain :: (Show env, Read env)
defaultMain load withSite = do defaultMain load withSite = do
config <- load config <- load
logger <- makeLogger logger <- makeLogger
withSite config logger $ runSettings withSite config logger $ runSettings defaultSettings
{ settingsHost = "0.0.0.0" { settingsHost = "0.0.0.0"
, settingsPort = appPort config , settingsPort = appPort config
} }

View File

@ -12,11 +12,11 @@ cabal-version: >= 1.6
build-type: Simple build-type: Simple
homepage: http://~project~.yesodweb.com/ homepage: http://~project~.yesodweb.com/
Flag production Flag dev
Description: Build the production executable. Description: Turn on development settings, like auto-reload templates.
Default: False Default: False
Flag devel Flag library-only
Description: Build for use with "yesod devel" Description: Build for use with "yesod devel"
Default: False Default: False

View File

@ -7,9 +7,12 @@ runghc main.hs init
cabal configure || cabal install cabal configure || cabal install
cabal build cabal build
cabal clean cabal clean
cabal configure -fdevel cabal configure -fdev
cabal build cabal build
cabal clean cabal clean
cabal configure -fproduction cabal configure -flibrary-only
cabal build
cabal clean
cabal configure
cabal build cabal build
) )