Community Conundrum 28: News Engagement is live! Read More

Fixed port for (Bokeh) webapp

Level 2
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:

 
 
 

example.png

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.

0 Kudos
3 Replies
Dataiker
Dataiker

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.

0 Kudos
Level 2
Author

Good workaround, really helpful! 🙂

0 Kudos
Level 1

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.

0 Kudos
Labels (1)
A banner prompting to get Dataiku DSS