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

Automatic Reload? #220

Closed
luisDanielRoviraContreras opened this issue Apr 23, 2018 · 7 comments
Closed

Automatic Reload? #220

luisDanielRoviraContreras opened this issue Apr 23, 2018 · 7 comments

Comments

@luisDanielRoviraContreras
Copy link
Contributor

You can have an automatic reload to be on the development server, for every change I have to reload the page manually

@ycmjason
Copy link
Contributor

How are you starting the server? New content should reflect on the dev site.

@yyx990803
Copy link
Member

yyx990803 commented Apr 23, 2018

You definitely have something messed up with your installation... everything hot reloads on the dev server. Most likely the web socket client isn't connecting properly.

@luisDanielRoviraContreras
Copy link
Contributor Author

To raise the development server I run vuepress dev

@yyx990803
Copy link
Member

Either way please open a proper report with your exact environment, versions, directory setup etc.

@beetaa
Copy link

beetaa commented Jan 14, 2019

@yyx990803 @ycmjason Follow the guide step by step, I encountered the same problem @luisDanielRoviraContreras had. when things changed in the editor, I must refresh the browser manually for update. When I open the chrome's console, error info is:

socket.js?bca5:18 WebSocket connection to 'ws://0.0.0.0:8081/' failed: Error in connection establishment: net::ERR_ADDRESS_INVALID

related informations:

  • node, npm, vuepress in win10's WSL subsystem
  • vscode at win10 x64 1809
  • view site by chrome at http://127.0.0.1:8080
  • vuepress@stable
  • npm i -D vuepress
  • mkdir posts
  • echo '# Hello VuePress!' > docs/README.md
  • vuepress dev posts

every goes well except hot reloading. 😞

@beetaa
Copy link

beetaa commented Jan 14, 2019

@yyx990803 @ycmjason After checking the source code of vuepress under node_modules, I found something maybe related in file lib\dev.js:

2019-01-14_183130

@beetaa
Copy link

beetaa commented Jan 14, 2019

Finally, the problem solved by following #123 , just set host: localhost in .vuepress/config.js and restart the dev server.

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

4 participants