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

Fix local static file host on Windows #2321

Merged
merged 1 commit into from Nov 11, 2020

Conversation

adamb70
Copy link
Contributor

@adamb70 adamb70 commented Nov 10, 2020

Changes

Addresses a Windows specific issue following on from #1912.

0.0.0.0 is non-routable address that a browser won't connect to. Linux helps out by converting that to 127.0.0.1 automatically but Windows does not.

On local deployment the frontend server is set to listen on 0.0.0.0 which is correct, but the client also uses this as the host address to connect to the server which results in an error on Windows.

image

This PR keeps the server listening on 0.0.0.0 (or whatever WEBPACK_HOT_RELOAD_HOST is set to), but changes the address on the client end to point to localhost (or WEBPACK_HOT_RELOAD_HOST if set).

Checklist

  • All querysets/queries filter by Organization, Team, and User (if this PR affects ANY querysets/queries).
  • Django backend tests (if this PR affects the backend).
  • Cypress end-to-end tests (if this PR affects the frontend).

@timgl
Copy link
Collaborator

timgl commented Nov 11, 2020

Nice, thanks for this!

@timgl timgl merged commit be3a3bf into PostHog:master Nov 11, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants