mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-12 19:08:34 +03:00
web: better settings for wai-handler-devel
This commit is contained in:
parent
737f908383
commit
1c3a5da1fa
@ -48,12 +48,12 @@ withDevelApp = toDyn (withApp a :: (Application -> IO ()) -> IO ())
|
||||
-- Eg: cabal-dev/bin/wai-handler-devel 5001 AppRun withWaiHandlerDevelApp
|
||||
withWaiHandlerDevelApp :: (Application -> IO ()) -> IO ()
|
||||
withWaiHandlerDevelApp func = do
|
||||
let f = "/repos/hledger/hledger-web/demo.journal"
|
||||
let f = "./test.journal"
|
||||
ej <- readJournalFile Nothing f
|
||||
let Right j = ej
|
||||
let a = App{
|
||||
getStatic=static Hledger.Web.Settings.staticdir
|
||||
,appRoot=Settings.defapproot
|
||||
,appRoot="http://localhost:5002"
|
||||
,appOpts=defwebopts{cliopts_=defcliopts{file_=Just f}}
|
||||
,appArgs=[]
|
||||
,appJournal=j
|
||||
|
Loading…
Reference in New Issue
Block a user