Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser-refresh with gitpod #58

Open
eldrgeek opened this issue May 24, 2019 · 0 comments
Open

Browser-refresh with gitpod #58

eldrgeek opened this issue May 24, 2019 · 0 comments

Comments

@eldrgeek
Copy link

I am running browser-refresh in Gitpod. As a result, it's served over the internet by https not http.

When I try to load the browser-refresh.js script, using the BROWSER_REFRESH_URL it does not work because I am not on localhost and so I get a connection refused.

Gitpod creates a URL that combines a port and a base URL. So with my app served on port 3000, the URL is:
https://3000-fa269f1c-2cab-483e-a100-c003b021d84c.ws-us0.gitpod.io/

The random port assignment for this run is: 41597 so when I synthesized the port that would be the equivalent, I can read the js file at:
https://41597-fa269f1c-2cab-483e-a100-c003b021d84c.ws-us0.gitpod.io/browser-refresh.js

When I plug that in as the source URL (either http or https) I get a message that it's mixed content. I turned off the mixed content error in Chrome but still get a warning and no reloading.

It may be that the architecture does not permit this solution, but it there's a way, I'm willing to help

Here is a gitpod workspace snapshot:
https://gitpod.io#snapshot/e50bc0b6-fa4e-4eec-a9be-6b485f29dd33

It will probably come up with a different websocket port so you would have to open the port (tab next to the console tab)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant