Live data from Hacker News

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

news.ycombinator.com

151–160 of 507 posts

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

#152
post #41

I personally use Firebase for all my static sites. Completely free and fast. If you need to run some backend function they have Firebase functions which is free to a certain degree too. Example site: https://jeremyshaw.co.nz Other than that I'm sure Github Pages and Netlify are fine, both very popular options. Worst case you put it on Amazon S3 and get charged a fraction of a dollar every month .

Except if you get hit by a DDoS. The fact that you cannot put a cap on your spending is infuriating (the official AWS answer is "we do not want to break your business" (even if I want to)). To be fair, some complaining or crying in such cases usually gets your bill reversed.

You can, it's just very convoluted.

You can set up billing alarms and use alarms as triggers for actions.

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

#153
There's a list on SaaSHub tracking all the recommended/mentioned products here https://www.saashub.com/alternatives/post-news-ycombinator-2... however, I'm wondering why https://www.netlify.com/ isn't listed...

Please don't upvote or downvote this one. It's more like a "debugging" comment.

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

#154

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.

Also, GitLab allows business websites in GitLab pages in free tier, as opposed to Netlify and Github.

"With GitLab Pages, you can publish static websites directly from a repository in GitLab. Use for any personal or business website."

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

#156
post #36

Check out Vercel! [1] You can deploy for free, with a single command, in a few minutes. Disclaimer: I work at Vercel, happy to answer any questions. [1]: http://vercel.com/

Very happy Vercel user here. My default choice now -- supremely simple and fast deployments with great UX.

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

#157
post #28

I use https://nearlyfreespeech.net for my static site. It isn't free -- it is pretty cheap -- but it has a lot going for it. It requires no custom tooling -- I upload via rsync. This makes it trivial to migrate to a new provider if necessary. I develop my site locally, then rsync it up. I have a custom domain pointed at the site, and also a custom .htaccess, so I have a good amount of control over the site. I do thin…

Yep NFSN is great. If you have a bunch of static files it's really just `rsync myfiles mywebsite@ssh.phx.nearlyfreespeech.net:` and you're done. No set up, no nothing.

Yeah! The command I use is: `rsync --recursive -vv --delete --filter="protect /.well-known" /path/to/site/on/local/box user_site@ssh.phx.nearlyfreespeech.net:/home/public/`

I add `--delete` to clean up any files I might've created on the box (e.g., to test .htaccess), and then `--filter="protect /.well-known" so that I keep any files related to serving as https.

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

#159
post #7
post #3

If you mean pure html/css, then the least friction would be NeoCities [1] It is free and not owned by Microsoft or Google. [1] - https://neocities.org/

Seconded. Their CLI has all you need, even git hooks. Personally I just use `neocities push .`

Thirded.

Use it to host my blog; free tier is good, but I really like them and have really phenomenal limits, etc, so just pay (even though my blog is not updated nearly as much as I'd like)

Post reply on HN