Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the jekyll command bundle exec jekyll serve --incremental mean?

What does the jekyll command:

$ bundle exec jekyll serve --incremental

mean and how can I make it rebuild only those pages that I have modified/ updated rather than building the entire site?

like image 617
Tanaka Avatar asked Oct 17 '22 07:10

Tanaka


1 Answers

bundle exec looks for a Gemfile in your current directory, you should run that in Jekyll root folder.

If you don't have a Gemfile then you can create one with bundle init and adding the gems you need.

jekyll serve serves your site locally for development purposes.

Finally, the --incremental flag does what you need:

only re-builds posts and pages that have changed

like image 165
marcanuy Avatar answered Oct 21 '22 09:10

marcanuy