Hosting Jekyll blog on Github
In the previous post, we set up a Jekyll blog on our local machine. Now its time to make it go live on the internet! All you need to do is to push all the changes made in the local repository to the remote repository on Github servers. Open the terminal window in the root directory of the blog and type in the following command :
Now let Jekyll and Github Pages do the magic for you! That’s it, your blog’s live on the internet! You can access it by typing in the address :
Using Custom Domain Name
These days - if you’re lucky to find a deal, you can find cheap domain names. If you happen to have your own domain name, you can use that domain name while hosting the site on Github for free. Just go to the root of the blog directory, add a file named
CNAME and edit it to contain your domain address (e.g. www.exampledomain.com).
Then go to your domain name registrar, add a
CNAME DNS record pointing your domain to Github Pages.
It would take some time for the changes made to DNS to propagate. Just sit back and relax for a while and changes would be applied after some time!
Further reading :
Let me know what you think of this article on twitter @utkarshgpta or leave a comment below!