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.
Ask HN: Cheapest/easiest way to host a static site?
161–170 of 507 posts
Re: Ask HN: Cheapest/easiest way to host a static site?
#162I'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…
Re: Ask HN: Cheapest/easiest way to host a static site?
#163I'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 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?
#164Re: Ask HN: Cheapest/easiest way to host a static site?
#165Re: Ask HN: Cheapest/easiest way to host a static site?
#166Earlier 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.
Re: Ask HN: Cheapest/easiest way to host a static site?
#167However 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?
#168Re: Ask HN: Cheapest/easiest way to host a static site?
#169You can also tie it with the free plan for Cloudflare Workers if you have some need beyond static pages.
Re: Ask HN: Cheapest/easiest way to host a static site?
#170If you use Fastmail, it comes with static website hosting included