Jekyll: Running on localhost for MacOS
How to run Jekyll on localhost on a Mac (install rvm, etc.)
Short version
- Install rvm (Ruby Version Mangager) (this may be slightly painful, but you only have to do it once.)
- Use the ./install.sh script (once)
- Use the ./jekyll.sh script each time you want to run Jekyll locally.
Slightly longer version of step 1 above.
See instructions at: https://rvm.io/rvm/install
- Install gpg (needed to install rvm)
- Install Homebrew (needed to install gpg)
- Install
gpg
(might bebrew install gpg
)
- Install rvm (needed for running Jekyll) (This installs Homebrew too if you don’t already have it.)
Troubleshooting
- Make sure you have done
source ~/.rvm/scripts/rvm
in your current shell - If you get
bundle: command not found
, try this:sudo gem install bundler
- If you have trouble, consider removing the directory
vendor/bundle
before retrying the./setup.sh
step. This forces a refresh of all the Ruby gems (i.e. the dependencies), which sometimes helps when things get stuck.