One can follow the guide here or follow the steps below.
Run this from shell
gem install bundler
This will use the system default version of gem
and you will need sudo permissions for this. A possible alternative is to install using rvm
which creates sort of a virtual environment for ruby
.
- Follow instructions to install
rvm
from rvm.io. - Reload bash profile using
source ~/.profile
. - Run
rvm list known
to get the list of installable Ruby interpreters. - Mac users might need to install
xcode
. You can do so usingsudo xcode-select --install
. - Install your preferred version of Ruby from the list. Example:
rvm install ruby-2.3.3
- Check your Ruby version using
ruby --version
. - You are all set! Now your
ruby
andgem
should point to your local versions instead of system versions. Run thegem install
command mentioned above.
This reads GemFile and installs all dependencies
bundle install
Start the server. The port config is available in _config.yml
. Alternatively pass --port 4444
arguments to the following command to customize port.
bundle exec jekyll serve