Data Querying
Published in

Data Querying

Hosting a Static Website

In 2021, here are some quick and efficient solutions to perform the Hosting.

These days serving a basic website should not take much time out of your way. Note that what worked for me does not necessarily means that this is the best for you and vice versa!

Here is what I tried lately:

Kubernetes and Let’s Encrypt

It is what has been done for gethue.com and all its services like demo.gethue.com, docs.gethue.com, cdn, helm… It is overkill but a great way to understand how services can be operated and also 100% self contained (SSL included, seamless auto upgrade after a change) which is very handy.

gethue.com

Google Cloud Storage

Similar to the AWS S3 public hosting (lot of other solutions in AWS too) and looked easy to try despite a non intuitive to setup. But there is no way to get HTTPS simply or for free for a custom domain name, so I dropped it (but it is good for a CDN).

Netlify

Should be one of the easiest. Indeed, it was very quick to sign-up, then even just drag & drop the files and transfer the domain transfer. It is famous for integrating with Github. Probably what I would recommend for an open source website.

Firebase

I did not know about it but the Google Storage docs mention it as an alternative for easy support of HTTPS and custom domain name.

And it was very easy to use:

firebase login
firebase projects:list
firebase init

And preview/deploy:

firebase emulators:start
firebase deploy

Next step will be to fully automate the push of the updates to the live Website. We will see how the Github Action performs in practice or re-poke at Netlify!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store