Running a Jekyll Website on Localhost

01 Dec 2016 - by @mrjk_

tl/dr;

  1. Run the following line to get all the gem bundles within the gemfile installed.
bundle install
  1. Next update your bundle to ensure all packages are moved to the latest packages and link everything.
bundle update
  1. Finally launch the Localhost webserver using the following command
bundle exec jekyll serve -w 

I have been using Github Pages to manage my personal blog for a few months now. Originally I was using Wordpress hosted on their servers with a custom domain (jinskaduthodil.com). However it was costing me money and it was so hard to keep up to date often.

I came late to the game by using Github itself to host my blog. I was using Github to manage the code repo and then I heard of Github pages.

Wow! It looks amazing. Its super simple. Code is completely managed. It’s very fast. And best of all, it’s free!

Github Pages uses a markdown web editor called Jekyll to manage pages and content. It’s actually pretty easy to get setup. If you know markdown you will be set up and running in about 6 mins.

There are several examples and tutorials across the web of how to set up a Jekyll based website hosted compeltely for free on Github, so I wont repeat that here.

However the steps above will give you the quick run down on how to get the website running locally so you can test any changes before you commit them to your master published branch in your repo.

Bye!

Comments

comments powered by Disqus