-
Notifications
You must be signed in to change notification settings - Fork 3
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
Live reload not working #2
Comments
Unfortunately I’m not able to reproduce this issue on OSX. (And also unable to debug because I don’t have a Windows PC.) To be precise, the expected behavior is that when your Markdown file changes, the rendered page should update transparently without a refresh – note that this is different from how “Live Reload” works. |
Yes, even the transparent update doesn't work unfortunately. Is there something I can help you debug it? |
Would you please point me towards the part of the code that does file-watching? I'll see if I can fix and send a PR. |
I have located the issue: the address 0.0.0.0 does not work on Windows (or maybe it's not configured to route to localhost by default) Changing it here: Line 87 in f85dc5d
and here: Line 5 in f85dc5d
to 127.0.0.1 works! Would you like me to send a PR? |
Is there a way to make a change that would work for both MacOS and Windows? |
I believe the address 127.0.0.1 should work everywhere - Linux/Mac/Win. Does it not work for you (I don't have a way to check on MacOS)? |
@rashil2000 Are you able to verify if the fix in #3 fixes the issue on WIndows? |
Hi @yuanqing Yes, the address change fixes the live-reloading issue. However, there are multiple other quirks in rdd that prevent it from building under, and running properly on Windows.
I have a fork of rdd, which is 2 commits ahead of upstream, and fixes these problems.
|
The browser page does not refresh whenever I edit and save the file.
[OS: Windows 10]
The text was updated successfully, but these errors were encountered: