Skip to main content

Fast and free way to deploy your website

Although this post title feels like a clickbait, the statement is true. Actually, I have been using the following techniques to host my (this) website for free for a few years now. Of course, you still need to pay for a domain, nothing is 100% free in life, right?

Before we start, I’d like to make clear that this will not be a how-to or step-by-step on how to host your website for free. I will list here the tools I use and how they talk to each other in order to host and deliver the website with astonishing speeds in a serverless manner.


First of all is the framework, and I know that from here, several readers will start complaining, but I don’t care. It works for me, but if it doesn’t work for you, you should pay to host your wordpress website.

I’m using HUGO ( It is one of the world’s fastest frameworks for building websites. If you go check their docs you will find all features and possibilities, but for me, it is just a static site generator.

Basically speaking, my whole content is written in Markdown and then Hugo reads everything to generate static HTML files.

That’s it. If you want to test:

By the way, there are several other static site generators out there. If you don’t like HUGO, I bet you can find another one that will light the flame into your eyes.


Ok, the versioning is a bonus you get for using git, in this case, Github to keep your code in the cloud.

We could stop here because there is a way to host your static website using Github Pages. You can even use your own domain! How cool is that? Follow the link and I bet you that with a small amount of time and a few Google searches, you will get everything working.

But that’s not our case. Using Github Pages your website will load fast. Of course, it is a static website, but we can make it even faster and add a whole layer of security and a lot of extra resources to it.


Here we go, this is the last element in our equation, and this element is called Cloudflare ( I personally LOVE Cloudflare and I’m always bringing this company to the table whenever possible, just because they are amazing and have great services.

But don’t get me wrong, I don’t pay for any plan, all of this can be done using their free plan. Yep, you will get hosting, fast delivery, SSL certificates, security and protection layers, reports and so much more, for free.

You will need to bring your domain DNS to their infrastructure, but I believe this will not be an issue for anyone, since their free services are better than almost all paid services I’ve used so far. You can also register your domain with Cloudflare…

Once you have everything configured, go check the Cloudflare Pages documentation page and then the Git Integration page.

Once you have your Cloudflare Pages created and integrated with your Github repository, the magic will happen.

Every time you push new content into your website git repository, Cloudflare will get the new code from Github and build a new website, deploying it to the Cloudflare global network.

Mind Blowing right?

Now it is up to you. I hope you can put everything together and bring your website online!

See you on the next one!