Bundler
Bundler provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed.
Ruby --> Bundler --> gems
To install Bundler:
- First, Install Ruby.
- Second, Install Bundler
Jekyll
Bundler manages Ruby gem dependencies, reduces Jekyll build errors, and prevents environment-related bugs.
Ruby --> Bundler --> gems --> Jekyll
Run your Jekyll site locally.
$ bundle exec jekyll serve
$ bundle exec jekyll build --drafts --unpublished --incremental --watch