Almost free webhosting

So my new webpage/blog is hosted by GitHub Pages. That is basically a free service with limitations. It handles static files only, no DataBase, no homegrown server-side PHP scripts. So the idea is to put your HTML files into GitHub and they will serve. To get the most out of it, you should use some framework. It would help you to overcome the boilerplate this offer requires.

The first obvious candidate is Jekyll, which is the default FW for GitHub Pages. Others can be used, but with them you have to upload the generated content, but with Jekyll this step is not required.

Jekyll is a “markdown to webpage” transformer. It reads all content - pages and posts - from separate files and gathers the meta-data then generates a couple of html pages. It features a handy template engine with layout helpers and plugins.

What do you have to do to start with GitHub Pages and Jekyll?

  1. First you have to have a registered user on GitHub.
  2. Create a new public repository, name it like: <username> (Replace <username> with your GitHub username.)
  3. Install Ruby then Jekyll: gem install jekyll
  4. Create a new site with Jekyll: jekyll new <username>
  5. Go into the folder and run Jekyll: jekyll serve
  6. Open the site in your browser
  7. Write your first post.
  8. Push your local repo to GitHub and open your site: http://<username> For example this site could be opened at

I want my own domain!

Ok, no problem, but this part won’t come for free: you have to buy a domain. Then you should create a file named CNAME in the root of your shiny new site and put your domain into it like this. Don’t forget to push.

Now you should go to your domain registrator and add at least one A DNS record. Most preferably use * as subdomain and add these IPs:, (If you can only set one IP, it is enough.)

After you wait TimeToLive amount of time check domain-IP mapping by executing this command:

dig <> +nostats +nocomments +nocmd

You should see something like this:

; <<>> DiG 9.8.3-P1 <<>> <> +nostats +nocomments +nocmd
;; global options: +cmd
;<>.			IN	A
<>.		121	IN	A
<>.		121	IN	A

I’m stuck…

Check the docs here or here or here

comments powered by Disqus