\curl -sSL https://get.rvm.io | bash -s stable
rvm list known
rvm install "ruby-2.4.2"
ruby -v
rvm use ruby-2.4.2 --defaultIn case of installation error run this command befrore install again
xcode-select --installOR
softwareupdate --list
softwareupdate --install <product name>OR
$ rm -rf /Library/Developer/CommandLineTools
xcode-select --installOR
rvm install "ruby-2.2.5"
rvm use ruby-2.2.5 --default
# sudo rvm osx-ssl-certs update allFor more information access: Jekyll Installation Guide
gem install jekyll bundlerjekyll new [site-name]# First time
cd/[site-name]
bundle exec jekyll serve
# If it's not the first time running the server
jekyll serve
# To have access to the _drafts folder
jekyll serve --draft- Select a theme on Rubygems and search for jekyll-theme
- Copy the name of the theme
- Go over Gemfile and add the line below
- gem "[theme-name]"
- on the Terminal, run
bundle install - Head over the _config.yml file and change the
themevariable adding the new theme name - start jekyll running
bundle exec jekyll serve