Skip to content

Watch Changes , Live Regenerate ? #185

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

Closed
rafaelvasco opened this issue May 26, 2013 · 2 comments
Closed

Watch Changes , Live Regenerate ? #185

rafaelvasco opened this issue May 26, 2013 · 2 comments
Labels
bug Something isn't working

Comments

@rafaelvasco
Copy link

How to actually use hexo generate watch option ? I tried hexo generate -w and hexo generate -w/--watch to no avail. Must i call generate -w/--watch then server or the other way around ? They both didn't work. Maybe it isn't what i think it is ? I want to modify a file and just refresh the browser to see the changes... Couldn't see any bug in Issues since it's all in Chinese.
Other than that hexo is great and easy to use. Please keep up the good work. Thanks!

@mcfog
Copy link

mcfog commented May 27, 2013

@rafaelvasco if you are on linux, this may help you

https://gist.github.com/mcfog/5654579

drop in your 'scripts' folder and run hexo preview


but it wont work in windows, it looks like the warehouse db failed if the watcher and server run at same time

@rafaelvasco
Copy link
Author

The script looks perfect but unfortunately i'm on windows :(
Is there hope still ? a single command for auto regenerate and server would be perfect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants