Skip to content

Instantly share code, notes, and snippets.

@jwildeboer
Last active June 25, 2022 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwildeboer/7024eb8aa46eb5b5a4dd51e451d6bcfd to your computer and use it in GitHub Desktop.
Save jwildeboer/7024eb8aa46eb5b5a4dd51e451d6bcfd to your computer and use it in GitHub Desktop.
Jekyll local on macOS
brew install chruby ruby-install
ruby-install ruby
echo "source $(brew --prefix)/opt/chruby/share/chruby/chruby.sh" >> ~/.zshrc
echo "source $(brew --prefix)/opt/chruby/share/chruby/auto.sh" >> ~/.zshrc
echo "chruby ruby-3.1.2" >> ~/.zshrc
chmod +x ~/.zshrc
<close terminal, open again to source the .zshrc>
gem install jekyll
gem install bundler
git clone git@github.com:YOURREPO/USER.github.io.git
cd to the repo
bundle install
bundle exec jekyll serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment