Hi,
This is a patch mainly to fix a bug where hledger-web would use wrong relative static url when base-url is specified. I encounter this because I have a reverse proxy to serve hledger-web, which required me to use base-url.
For example, I start the server like this:
hledger-web --base-url=
http://localhost/ledger/And I use apache to setup a reverse proxy of
http://localhost/ledger/ ->
http://localhost:5000/Now if you browse to
http://localhost/ledger/register , and view source, it includes jquery at
http://localhost/static/jquery.js instead of
http://localhost/ledger/static/jquery.js . The same to combo_select.gif
The thing with base-url is that, it only changes the output of links on the page. The embeded server is still serving everything from root. So this problem only occurs when a reverse proxy is involved.
In this patch, first hledger-web is enabled in Makefile. Then a little fixes to make it compile. Finally these wrong static urls are fixed.
Sorry that this is a git formated patch. I had a hard time working with darcs when trying to look through the history. Stick to my favourite git for hacking now.
Best,
Xinruo