Support jekyll serve
Currently jekyll serve
hangs because the self_symlink
method generates an infinite loop for rb-inotify to follow. The workaround is to add a build destination outside the source directory jekyll serve --destination /tmp/_site
.
Possible solutions:
-
Make
self_symlink
create a directory and symlink everything in it. Just tested this and it works but the listener complains it's already monitoring some directories and when a change is made it loop builds, probably because it's monitoring the same files that are changing. It shouldn't because_site/
is ignored! -
Don't use symlinks but hardlinks. This requires finding all files not just first level and possibly loop building again (but inotify should be hardlink-aware?)
-
Modify
Jekyll::Watcher
to run a listener per Jekyll directory instead of the whole source and regex-ignoring_site
and others. It could become a patch for Jekyll itself?