Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jekyll auto reloading

Tags:

jekyll

Working with Jekyll for the first time, and it looks like the auto reload functionality (running jekyll --auto --server) is only triggered by updates to markdown files.

Is this the normal behavior? And is there any way to get changes to other types of files like css (I'm using scss) or html files in _layouts to trigger an auto-reload as well?

like image 995
danny Avatar asked Mar 30 '13 20:03

danny


2 Answers

As of version 3.7 run jekyll serve --livereload.

like image 60
Harry Moreno Avatar answered Nov 18 '22 13:11

Harry Moreno


As mentioned here, you need to downgrade the directory_watcher gem, which was recently updated with a breaking change.

sudo gem uninstall directory_watcher && sudo gem install directory_watcher -v 1.4.1

(Or alternatively use the latest master branch of jekyll, which is fixed to depend on the older version of directory watcher).

like image 30
liliakai Avatar answered Nov 18 '22 13:11

liliakai