Fixed port for (Bokeh) webapp

Solved!
Rik_Veenboer
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
1 Solution
Clรฉment_Stenac

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.

View solution in original post

0 Kudos
3 Replies
Clรฉment_Stenac

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
Rik_Veenboer
Level 2
Author

Good workaround, really helpful! ๐Ÿ™‚

0 Kudos
danroozemond
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

?
Labels (1)
A banner prompting to get Dataiku