Skip to content

Local setup

Li-Wei Yap edited this page Dec 4, 2021 · 2 revisions

Local setup

Mac OS X

  • Follow installation guide here:
# install the command line tools to compile native extensions
xcode-select --install
export SDKROOT=$(xcrun --show-sdk-path)

# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Install Ruby
brew install ruby

# If you're using Zsh
echo 'export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/3.0.0/bin:$PATH"' >> ~/.zshrc
  • VERY IMPORTANT: Restart your terminal to apply your changes. Then run:
sudo gem install bundler
bundle install
  • For local testing, run:
bundle exec jekyll serve --config _config.yml,_config-dev.yml
Clone this wiki locally