Last active
June 25, 2022 17:46
-
-
Save jwildeboer/7024eb8aa46eb5b5a4dd51e451d6bcfd to your computer and use it in GitHub Desktop.
Jekyll local on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [email protected]: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