Hosting (5 Part Series)
Did you know you can host websites with GitHub Pages? In fact, so far, all my websites have been hosted with GitHub Pages. See my Projects. All the websites there under the domain harishv.me are hosted under GitHub Pages. Let's see why is it so awesome.
GitHub Pages offers free hosting of your websites/apps etc. That’s right, its totally free. (There’s a catch though, check the limitations below).
Version control is crucial for any project you do. GitHub Pages is connected with your GitHub repository, which means once any changes are pushed, your website is automatically rebuilt and deployed for you. The individual sub-pages that see - my blog, my projects, my photography page are all individual GitHub repositories. The main page is a GitHub repository named
<your-github-username>.github.io on the
master branch. To deploy other repositories under your GitHub Pages domain, you simply push your changes to a
By default GitHub Pages offers the domain
http://<your-github-username>.github.io. This is good enough for many hobbyists to try deploying their local projects on the web. But if you want a custom domain, you can do that too. Simply register for a domain name on sites like Namecheap or GoDaddy and connect them to GitHub pages. My site domain harishv.me is registered on Namecheap and connected to my GitHub repositories.
GitHub Pages supports Jekyll, which means you can create blogs and deploy them. Jekyll is a powerful Markdown-based blogging tool. All you need to do is run a few Jekyll commands after writing your posts and Jekyll builds static sites which you can easily push to GitHub. My blog is built with Jekyll as well. It’s a great way for people who prefer pure code-style of blogging. Also, all your posts can be easily backed up as they are all in a text-based Markdown format.
GitHub is almost always up with some rare cases of downtime. This means that it provides reliable service in ensuring your webpages are live 99% of the time. That’s one huge bonus for a free service. You can check on the GitHub system status here.
This is a rather short section since there aren’t many disadvantages I can think of. There are rather limitations with GitHub Pages.
Of course, GitHub only supports repositories from itself. If you use another platform like Atlassian BitBucket for version control then you will not be able to utilise GitHub Pages. If you are using BitBucket, you are in luck since they too offer support for hosting static sites. Check this FAQ section for more information.
- If you want the best Wordpress hosting, I highly recommend Bluehost. Get a great discount when you apply through this link.
- Also, get a massive discount with Hostinger when you apply through this link.
Both services offer great uptime and customer service. Oh did I mention - you get a free domain name with both Bluehost and Hostinger!
DEV has over 250k posts
Level up every day