Missing auto-regeneration ? --watch

Ok, there are other threads/issues being reported on auto-regeneration, on jekyll admin related scenario and _sass related .

My scenario differs.

Editing includes / layout files, eventhough i’m using --watch option while ‘jekyll serve’ ,
for whatever reason (confusing me) changes are not being taken in account :
they only are once manually interrupted the server process and restarted again ? What am i missing ?

ThX !

The --watch is on by default.

The site will rebuild. You can look at your log for when this is done. And any buios errors (often why I don’t see changes in the browser because I broke the site)

You can also add this.

jekyll serve --livereload

That will refresh the browser after Jekyll has rebuilt.

If you have issues, restart your machine.
If on windows or using subsystem, you have to add an extra Jekyll flag or gem to support watching. You can try this flag regardless of your OS to see if it helps.


Do you have Jekyll admin installed? An old version?

Do you have any config values that disable watching?

hey, @MichaelCurrin , ThX for… no, don’t have j. admin installed nor is an old jekyll version.

GNU + Linux System here … FYI

Already using --force-polling

1 Like

So to confirm, if you change and save any .md or .scss etc. file in your repo when running Jekyll serve, you see no change in content of the built files. And jekyll does not log to say it is rebuilding? Does it say anything?

You can try add --verbose to see what is going on at a lower level. It is too noisy for general use.

What if you setup a new repo using:

bundle exec jekyll new ../new-project

And check there?

cd ../new project
bundle config set --local path vendor/bundle
bundle install
bundle exec jekyll serve --trace

And then edit a file and check for reloading.

If that works, then we know the problem is your project code and dependencies and your global Ruby environment is fine.

Can you also verify using Ruby 2.7? Ruby 3 is out but not reliable for Jekyll yet.

One other thing. Try with incremental flag off. With incremental on, I found that editing a post will rebuild the post itself. But any pages which list that item in their post list or menu will be outdated.
Jekyll 4 has great speed gains with caching and it is more friendly in what you get compared with incremental