How to Generate Jekyll Sites Locally

Before you Begin

The repositories we use in class are deployed using GitHub Pages, so you don't need to do any local serving. But, if you'd like to see what your changes look like locally before they actually are pushed to the default branch, you can.

The process may vary in difficulty based on your operating system, and we've found it's a smoother experience in macOS. We're working to improve these instructions for all platforms, so please let us know if you have any recommendations.

This script uses Ruby. If you don't already have Ruby installed locally, you should follow the detailed instructions on In short:

  • On Windows, you can do so from, select version 2.3.3, ensure you select to "Add Ruby executables to your PATH" during setup, and restart your machine.
  • If you need to install Ruby on a Mac, install homebrew and then run brew install ruby.

Generating Locally

  1. Using a Bash-like terminal, cd to the class repository locally.
  2. Check that Ruby is installed.
    • on your command line, run ruby -v and gem -v
    • If you see a version 2.3.x for Ruby, you're :thumbsup:. If not, refer to directions above. :point_up:
  3. If there is a Gemfile.lock file, delete it.
  4. Install bundler: gem install bundler.
  5. Type script/setup to install all of the proper gems.
  6. Then, type script/server.
  7. If all goes well, your terminal will tell you where to access your site in your browser. :tada:

results matching ""

    No results matching ""