Live data from Hacker News

Ask HN: Cheapest/easiest way to host a static site?

news.ycombinator.com

161–170 of 507 posts

Re: Ask HN: Cheapest/easiest way to host a static site?

#161
post #117

Earlier quoted context omitted.

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

There are "Dynamic DNS" services (a good free one used to be DynDNS in the 00's) that will take an API call from your home system and update a DNS with it. Many routers have support for this and if your router runs dhcpcd you can tell it to issue the call when it renews the DHCP lease from your ISP, or simply cron job it.

From my experience most ISPs don't give publicly routable addresses anymore, just throwing everybody behind CGNAT (currently I pay extra 3$ monthly fee for static routable IP, but not all providers offer it). And IPv6 is usually still not deployed.

Re: Ask HN: Cheapest/easiest way to host a static site?

#162

I've tried Github pages, Netlify, and Cloudflare Pages. Moved last night to the latter. Github 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 buil…

The feature that made me change from github pages to netlify was 302s. Cloudflare pages doesn't seem to have that.

Re: Ask HN: Cheapest/easiest way to host a static site?

#163

I've tried Github pages, Netlify, and Cloudflare Pages. Moved last night to the latter. Github 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 buil…

I actually just went the other way. I found CF is a bit too aggressive with anti-DDOS measures, and the page would not work sometimes in Safari with default settings.

The default setup for GH Pages is not great. Jekyll is very dated. But if you use GH Actions, you can build yourself a pretty great setup. My site is open source at https://github.com/jacobp100/jacob-does-code - there's also a blog post about how the build system works.

Re: Ask HN: Cheapest/easiest way to host a static site?

#166

Earlier quoted context omitted.

There are "Dynamic DNS" services (a good free one used to be DynDNS in the 00's) that will take an API call from your home system and update a DNS with it. Many routers have support for this and if your router runs dhcpcd you can tell it to issue the call when it renews the DHCP lease from your ISP, or simply cron job it.

From my experience most ISPs don't give publicly routable addresses anymore, just throwing everybody behind CGNAT (currently I pay extra 3$ monthly fee for static routable IP, but not all providers offer it). And IPv6 is usually still not deployed.

In the US, it's pretty rare to be behind CGNAT or not have IPv6. We're lucky in that regard.

Re: Ask HN: Cheapest/easiest way to host a static site?

#167
When I did this I used netlify.

However for my use case I now use cheap shared hosting and Wordpress, because the sheer amount of plugins to solve all kinds of problems is amazing.

One of the built in themes I think 2019 is a nice starter for a modern site and with Gutenberg you can create a fairly modern responsive site out of the box.

There is a plug-in for free that’ll backup the entire installation to your Google cloud and other clouds.

There are cache and SEO plugins for free to sort that side of things out.

Ive not used it but there is woo commerce for shopping although I wouldn’t blame someone for skipping it and using shopify for ease of use.

I also love not battling with Hugo etc. at the technical level. I do not miss reading Hugo docs thinking wtf!

Hosting for unlimited sites is costing me about $50 a year so pretty much zero.

Re: Ask HN: Cheapest/easiest way to host a static site?

#169
Cloudflare pages. The only real limit on the free plan is "500 builds / month". Simple is relative, of course, but if you're a developer, you'll likely find it simple, and it does fit your "deploy with a single command" requirement. https://pages.cloudflare.com/

You can also tie it with the free plan for Cloudflare Workers if you have some need beyond static pages.

Post reply on HN