
Hi,
I am working on a project that involves deploying a Bokeh server on Google App Engine (GAE). I have seen @BryceWayne discussion with @Bryan trying to get bokeh server to work with Flask.
I have taken an alternative approach, by packaging the Bokeh app in a container, like the demo.bokeh.org. After a couple of hours of reading up on how GAE works, I have got it to work by adding the following app.yaml:
runtime: custom
env: flex
And two changes in the Dockerfile
-
EXPOSE 8080as this is the port GAE listens to (I have removed ports 5006 and 80 just to be sure) -
CMD bokeh serve --port 8080 ... (rest unchanged)so Bokeh also listens on 8080.
That did the trick for me, and am happy that for small projects and proof-of-concept stuff I can run a Bokeh app on GAE now. Thought it is useful to share it here for future benefit.



