Post

Setting up local testing for Jekyll with the Chirpy theme

In order to test our Jekyll setup without having to endlessly build and deploy on GitHub actions, we need a local serving of Jekyll. This short guide walks you throught installing the required software in order to test locally before you push remotely on your GitHub repository to trigger your GitHub Action.

Setting up local testing for Jekyll

Steps

Install Ruby

Make sure the latest version of Ruby is installed on your system.

Install Bundler

With most modern Ruby distributions, Bundler comes pre-installed. If this is not the case, be sure to download Bundler manually.

Install Ruby Gems

Using Bundle, we can then install the required Ruby Gems (~packages) by running the following command in the repository:

1
bundle install

Serve Jekyll server

After installing the required Ruby Gems, we can then serve the Jekyll server locally on our device. The following command can be used:

1
bundle exec jekyll serve
This post is licensed under CC BY 4.0 by the author.