Setting up GitHub Pages site locally with Jekyll
February 6, 2017 | Ruby macOS Windows 10In this post, we document how I set up my GitHub Pages site, Thus Spake Manjusri, locally with Jekyll, on both my 27” iMac 2010 and my XPS 15 9560 laptop.
macOS
Ruby 2.3 comes preinstalled on macOS 10.13 (High Sierra):
Install the github-pages gem:
which will install, among other things, jekyll as a dependency.
List all local gems:
Update all installed gems to the latest version:
Clean up old versions of installed gems:
Serve the GitHub Pages site locally:
Load the site http://127.0.0.1:40000/ in a browser.
Windows 10
On my XPS 15 9560 laptop, I use Ruby that comes preinstalled with Windows Subsystem for Linux:
Install the github-pages gem:
which will install, among other things, jekyll as a dependency.
List all local gems:
Update all installed gems to the latest version:
Clean up old versions of installed gems:
Serve the GitHub Pages site locally:
Load the site http://127.0.0.1:40000/ in a browser.