Fixed port for (Bokeh) webapp
Would it be possible to configure a fixed port for the backend of a (Bokeh) webapp?
This seems to be randomly assigned with no way of overriding this:
We're developing the app "full screen" (by following that link in the log) and it's not very convenient to re-open it every time we make an edit.
Best Answer
-
Hi,
While it's not possible to use a fixed port for the Bokeh backend itself, what you can do for your fullscreen development is to go to the "Preview" tab of the webapp editor, right-click > this frame > open in a new tab.
This will open the DSS-managed URL that redirects to the backend, but with a fixed URL.
Answers
-
Good workaround, really helpful!
-
Thanks for the helpful hint, Clement! This has worked brilliantly (including a proxy config so that it can be approached via https). I've taken this over from Rik earlier this month.
Unfortunately, after a machine restart now the URL for the backend has changed
from http://[...]/web-apps-backends/[PRJ]/Ljk13uh4/backend to
http://[...]/web-apps-backends/[PRJ]/mv11MH/backend
Any solutions to keep this URL stable?
For keeping this webapp usable by the end-user, even when the machine has received system updates, the change of URL is extremely inconvenient. I can set up that the proxy redirects, but then the proxy config would have to be updated after each restart.