Earlier quoted context omitted.
The in-between days (after dial-up ISPs, but before "cloud" meant people forgot they could do things themselves) was to host the website on your own computer. For example, an old laptop, a Raspberry Pi, or an always-on-anyway desktop. I host my personal site this way. I also host about 100 mostly-static mostly-low-use websites at work similarly: with Apache on a couple of VMs. They are more reliable than the free ver…
I'm not sure how you do this unless you have a static IP somehow? In my experience ISPs don't offer that to residential clients
Ask HN: Cheapest/easiest way to host a static site?
121–130 of 507 posts
Re: Ask HN: Cheapest/easiest way to host a static site?
#122Re: Ask HN: Cheapest/easiest way to host a static site?
#123I continue to be a big fan of surge [1]. A number of toy projects/demos of mine have been developed using create-react-app, rendered to static files, then deployed via surge. [1] = https://surge.sh/
Re: Ask HN: Cheapest/easiest way to host a static site?
#124These days, though, I just use netlify. It's not quite one command, but it's about heroku-level easy, and it gives you a lot of little niceties (autodeploy whenever you push a specific git branch to github, ssl, etc).
Re: Ask HN: Cheapest/easiest way to host a static site?
#125GitHub Pages or Netlify for sure. With either of these options, your static site can be set up to deploy whenever there's new commits to the specified branch. Me and a friend mentor for Code Louisville, and we're able to get the beginner frontend students up and running very quickly using these options - they're free and much easier to use.
I see the "GitHub Pages" suggested a lot whenever this question comes up, but it's worth noting that it's against their ToS[0] to use it for commercial purposes: "GitHub Pages is not intended for or allowed to be used as a free web hosting service to run your online business, e-commerce site, or any other website that is primarily directed at either facilitating commercial transactions or providing commercial softwar…
In my opinion, there are some cases where it is a gray area: professional portfolio, case studies website with an email collection form, blog posts where you mention that you are a freelancer, a site where you link to your YouTube videos, some simple JavaScript app that don't require a backend but might make some money with ads...
So I'm just wondering how often they strike down at people who operate in this gray area.
Re: Ask HN: Cheapest/easiest way to host a static site?
#126Re: Ask HN: Cheapest/easiest way to host a static site?
#127You could host it P2P in Peergos - https://peergos.org/posts/p2p-web-hosting Disclaimer: I'm a co-founder
Re: Ask HN: Cheapest/easiest way to host a static site?
#128Re: Ask HN: Cheapest/easiest way to host a static site?
#129Re: Ask HN: Cheapest/easiest way to host a static site?
#130Github pages is fine, but the extra gh-pages branch is kind of annoying. It's fairly clear (for obvious reasons) that they mainly think about Jekyll users, though I had a Hugo blog there for a while.
Netlify sounds great, but in practice I ran into an annoying issue that I couldn't resolve where I had to rerun every automatic build. This probably isn't really their fault but the forums didn't work.
Cloudflare Pages kind of just worked out of the box, and since I was already using it for my DNS, changing where the domain pointed took a few seconds.
I'd suspect, if you corrected for how many issues were particular to me, I'd say Cloudflare Pages ~ Netlify > Github Pages. I'm kind of surprised the latter charges you for custom domains; I do have to say there's more documentation for Github than any of the others.