It took me a while to figure out that when serving multiple bokeh applications using, for example:
bokeh serve src/app1/ src/app2/ --index=template_name.html
the template_name.html
should be the absolute path, so in order to make it work the command should be:
bokeh serve src/app1/ src/app2/ --index=/absolute/path/to/template.html
Is this the only way to do it while still using bokeh serve
?
I have the feeling that there is a more straightforward way that I am missing.
my directory structure is:
project +---data +---src | +---app1 | | +---templates | | | +---index.html | | +---main.py | +---app2 | | +---templates | | | +---index.html | | +---main.py +---static | +---app_index.html +---Procfile +---requirements.txt
I have the applications running on heroku for the moment, so, in this case my Procfile is:
web: bokeh serve --port=$PORT --allow-websocket-origin=datanav.herokuapp.com --address=0.0.0.0 --use-xheaders src/app1 src/app2 --index=/app/static/app_index.html