How to set Frappe socketio URL in development mode?

I’m doing Frappe/ERPNext with gitpod.io and custom workspace Dockerfile which works well.

However, Gitpod creates different hostname URL for each port, so instead of getting this for socketio:

https://bb48c323-66d6-4436-9372-738a3128b8b6.ws-us02.gitpod.io:9000/

what I get is https://9000-bb48c323-66d6-4436-9372-738a3128b8b6.ws-us02.gitpod.io/

So when I access the main Frappe/ERPNext URL, which works fine: https://8000-bb48c323-66d6-4436-9372-738a3128b8b6.ws-us02.gitpod.io/desk

it will try to access socketio URL which is not working: https://8000-bb48c323-66d6-4436-9372-738a3128b8b6.ws-us02.gitpod.io:9000/socket.io/?EIO=3&transport=polling&t=NHTObxW

How do I change that socketio URL to https://9000-bb48c323-66d6-4436-9372-738a3128b8b6.ws-us02.gitpod.io/ ?

Related to: URL to use for production systems, Use HTTPS / Socket.io in development environment - #9 by clarkej

@hendy Were you able to solve this? I’m stuck on it as well…

1 Like

Frappe should focus on the remote development, i am using the windows machine for development. need good support for the docker in WSL or remote development like github codespaces or gitpod like services.