Live data from Hacker News

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

news.ycombinator.com

201–210 of 507 posts

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

#204
post #5

Speaking of AWS, I recently deployed a gatsby web site with AWS Amplify. It links to your git repo and will automatically deploy when you merge to master/main. You can also deploy branches you want to test out. As this was my second website I have ever deployed, I was amazed at how easy it was to setup.

Yep - we recently launched a couple of react sites on amplify and have found it super easy for our team to adopt. Hooked up to gitlab in a few seconds, added custom domain easily (automatically updated route53 for us), each PR gets its own deployment behind a password for testing, and develop and master are updated automatically on merge.

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

#205
I did something similar for a kids coding camp in Bulgaria. It requires 0 technical knowledge, no registration and no captchas, but it is maybe a bit too tailored for their use case: https://bin.gamejs.online

I actually started it using myself, because it is so nice to just zip a folder and get it online in ~10 seconds.

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

#206

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…

gitlab pages is better imo. You can use the CI to run any code you want to build the static files.

> You can use the CI to run any code you want to build the static files.

That is Netlify and Cloudflare Pages' defining feature, and GitHub has had that for a few years now.

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

#209

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…

> Github pages is fine, but the extra gh-pages branch is kind of annoying.

You can configure github projects to source from a different branch (including your main/master branch if you check in build artifacts directly)

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

#210

Earlier quoted context omitted.

An S3 bucket is intended as storage, not retrieval. Downloading from S3 means grabbing shards. You should put a proper CDN, like CloudFront or Cloudflare, in front.

Why, if his monthly bill is 83 cents, and he values his time? Does not using a CDN impact performance in a crippling way that neither me nor the poster you're replying to understands?

It takes like 30 seconds to point a Cloudfront distribution at an S3 bucket. Maybe a couple minutes more to set up the domain.
Post reply on HN