How To Deploy a Jekyll Blog

So after getting my blog up and running I figured I would do a quick how-to, on how to get a blog up and running. Its actually something you can do in less than 15 minutes.

~ $ gem install jekyll
~ $ jekyll new myblog
~ $ cd myblog
~/myblog $ jekyll serve
# => Now browse to http://localhost:4000 and you will see the blog running!

Easy Enough? Now how do you create a blog post?

Create a file with the following name in the _posts directory.

# Create a file with the following syntax
# Example:

Edit the above file and add this content. The format is done in markdown which is a very easy to write code. You can find some quick information here

layout: post
title: "How To Deploy a Jekyll Blog"
- Category
Type your blogpost here.

Once you save your file, you can refresh your browser pointing to and see your change. Once you are happy with your content you have two ways to publish this to the internet.

Your own host.

Run the following command and then upload the content in the _site directory.

jekyll build

GitHub Pages You can also load the site into GitHub pages and have a fully functioning site at You can use the following link for details. Host Jekyll Site using GitHub Pages

Once you get it all up and running you can look at other themes that you can clone from github and port over your posts and content.

Be on the lookout for a future blogpost on how to get an Ubuntu Server running NGINX to host your Jekyll Blog.

Share on