I managed to keep a bokeh app running on a server, by opening a screen on that server and starting a process with
bokeh serve. I also required a custom apache configuration as detailed here.
Keeping the bokeh serve instance up works, but it feels clunky, and the bokeh process running on it is always working hard, which makes our sysadmin suspicious and unhappy (I also have no idea why it does that). Is there some other way to do it, e.g. by having some kind of watcher that spins up a process when someone visits? Heroku seems able to do it, but I don’t know how.