How to mount bean-web under path other than /

16 views
Skip to first unread message

Filip Miletic (Филип Милетић)

unread,
Dec 24, 2017, 5:16:29 AM12/24/17
to bean...@googlegroups.com
Hi folks!

I'm trying to hang the bean-web reports under URL path '/finance' (as opposed to the default '/').

What is the easiest way to do so?  I would suppose that 'bottle' has some way to specify this path prefix, say with an environment variable or some such, but I was unable to find it. Looking at bottle.py it seemed like setting PATH_INFO env variable would do the trick, but it seemingly had no effect.

Thanks,
Filip

Martin Blais

unread,
Dec 24, 2017, 12:41:37 PM12/24/17
to Beancount
See source code here for that app:
https://bitbucket.org/blais/beancount/src/f177915f52b28840161ea7a3e25deb00f604f770/beancount/web/web.py?at=prices_nasdaq&fileviewer=file-view-default

In theory this should be possible, but that kind of thing is finnicky, I doubt you can achieve it with just an env var change.
Also, it might be time for a bottle.py version update, I haven't updated that in a very long time.






--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAKaOXij7Ne-sM8aSb1qi_Mo9Ey-Oz_kqN093vfG-vXhbco2EvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages