Live data from Hacker News

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

news.ycombinator.com

231–240 of 507 posts

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

#232
I host my personal static site on a vps with nginx. It's a gatsby site so deployment is just yarn deploy, which runs gatsby build and rsyncs the build folder to the server.

Granted, it took some setup to get there, but it's pretty easy now and portable too. Can easily be switched to any other service.

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

#233
post #232

I host my personal static site on a vps with nginx. It's a gatsby site so deployment is just yarn deploy, which runs gatsby build and rsyncs the build folder to the server. Granted, it took some setup to get there, but it's pretty easy now and portable too. Can easily be switched to any other service.

I also use a vps with nginx.

I currently just sftp in to deploy, but it would be pretty easy to set up sshfs so you wouldn't even need to open a terminal if you didn't want to.

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

#236
post #219

Hosting a personal blog on old / cheap hardware at home and accepting some downtime now and then should be a trade-of worth making for most. An interconnected web of documents served from personal computers residing under a desk or in a basement – it is a beautiful thing. We nerds often seem to fall into the trap of over-engineering things, like, spending a lot of time building personal stuff that can scale into the…

I'll go one step further: were it not for self-hosting since the early 2000s, I probably wouldn't have a career. My first "server" was a Pentium laptop with no screen. Now I run thousands of servers for a company you've probably heard of.

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

#238

I'd say Digital Ocean's newish Apps platform. Static sites are free and they can run a build step for you (still free).

For the curious, here's DigitalOcean's page describing the App Platform, including a breakdown of prices.

https://www.digitalocean.com/products/app-platform/

"..Build and deploy 3 static sites for free."

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

#239

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 should warn that bike shedding about this distinction is absolutely not worth your time if you’re reading this and have less than like 100 blog posts written or are running a business on these sites (in which case I think you should pick Netlify). Go write something.

And also, who cares it's a static host and you can change to another one in an afternoon. There's zero lock-in when you're only rsyncing some files around. Just make sure you have total control over your DNS (buy a domain, put it on a good DNS host) and you really can't screw things up too badly.

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

#240
post #55

I have my site in an S3 bucket with the static-site flag activated. It would not win for 'easiest'. However, it's the only thing in my personal AWS account right now and my monthly bill is $0.83

This terraform script takes it from 'stupidly complicated' to really really easy: cloudmaniac/static-website/aws
Post reply on HN