Hi,
I tried to deploy a simple bokeh server app on Heroku in the same way I deploy Flask apps with the only difference being the Procfile. Instead of adding the usual gunicorn line:
web: gunicorn app:app
``
I added this instead:
web: bokeh serve app.py
``
File app.py contains the Python code I referenced in the link above. The code works well on my local computer when I execute it with bokeh serve app.py.
However, I am getting an application error on the app webpage.
Here is the tail of my Heroku logs:
2016-07-17T12:32:18.472445+00:00 app[web.1]: WARNING:/app/.heroku/python/lib/pyt
hon3.5/site-packages/bokeh/core/validation/check.py:W-1004 (BOTH_CHILD_AND_ROOT)
: Models should not be a document root if they are in a layout box: Figure, View
Model:Plot, ref _id: 25082380-c412-46a4-a96d-c897e55e063b
2016-07-17T12:32:19.466925+00:00 heroku[web.1]: Process exited with status 0
2016-07-17T12:32:19.481993+00:00 heroku[web.1]: State changed from starting to c
rashed
2016-07-17T12:32:53.433502+00:00 heroku[router]: at=error code=H10 desc=“App cra
shed” method=GET path="/" host=bokehapp.herokuapp.com request_id=d1a01aec-f20d-4
a9f-8fbc-0ebcf52b01ef fwd=“217.73.139.64” dyno= connect= service= status=503 byt
es=
``
I also tried web: python app.py in the Procfile, but got the same error.
Anyone willing to help?

