Issue 101 in hledger: hledger web doesn't work in yesod devel mode

8 views
Skip to first unread message

hle...@googlecode.com

unread,
Apr 8, 2013, 8:55:45 AM4/8/13
to hle...@googlegroups.com
Status: New
Owner: ----
Labels: Priority-Medium

New issue 101 by marko.ko...@gmail.com: hledger web doesn't work in yesod
devel mode
http://code.google.com/p/hledger/issues/detail?id=101

When hledger-web is run with "yesod devel -p 5000" the web application
doesn't work. When I try to access it using the web interface I got the
following error in log:

GET /register
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,* *;q=0.8
08/Apr/2013:12:51:23 +0000 [Error#yesod-core] Maybe.fromJust: Nothing
@(yesod-core-1.1.8.3:Yesod.Internal.Core ./Yesod/Internal/Core.hs:550:5)
Status: 500 Internal Server Error. /register

However, the app works correctly when running the executable generated
using "cabal install".


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

hle...@googlecode.com

unread,
Apr 8, 2013, 10:23:23 AM4/8/13
to hle...@googlegroups.com
Updates:
Status: Accepted
Labels: Type-Defect

Comment #1 on issue 101 by si...@joyful.com: hledger web doesn't work in
The journal state isn't being initialised since yesod devel runs devel.hs
not Main.hs.
https://github.com/simonmichael/hledger/commit/9ffd34687a6ebb33c00a3d92e50f75307817dd0d
seems like it should help but doesn't.

Marko Kocić

unread,
Apr 8, 2013, 10:36:48 AM4/8/13
to hle...@googlegroups.com, codesite...@google.com, hle...@googlecode.com
Yes, that is one of the things I needed to do. It looked up for hardcoded dev.journal, so I had to put a symlink.

Cheers,
Marko
Reply all
Reply to author
Forward
0 new messages