News for hackers. Stuff that matters.
Re:Ask HN: Does a static site need anything more than a simp... by digianarchist on Thursday April 14, 2022 @09:33PM (#31035726)
Re:Ask HN: Does a static site need anything more than a simp... by swidi on Thursday April 14, 2022 @11:12PM (#31036292)
How are any of these simpler than "Get VM, install server, rsync files"? Why is the solution always "sign up for a proprietary service that might not exist next year and rig up a bunch of fragile webhooks"?

Also, I don't use Git or Github.

Re:Ask HN: Does a static site need anything more than a simp... by kadoban on Thursday April 14, 2022 @11:43PM (#31036441)
It's simpler from a certain point of view, namely one where you don't want to have to maintain the VM.

It's more complicated because you need to know more random tech that I bet you don't want to learn. Which is fine, it's really not necessary.

By the way, you should learn git sometime. Or there's a couple other VCSes that are somewhat known, but git is both good and has good networking effects (everyone uses it).

Re:Ask HN: Does a static site need anything more than a simp... by swidi on Thursday April 14, 2022 @11:51PM (#31036474)
I prefer Mercurial, and as a hobbyist I can afford to stay with it. I know Git has GitHub and all the connectivity of that, but I just truly dislike Git.
Re:Ask HN: Does a static site need anything more than a simp... by raffraffraff on Friday April 15, 2022 @06:18AM (#31038484)
Ah, I didn't see that you use mercurial instead of git when I made my last comment.

I'd love to be able to make red-line decisions like this regardless, no matter what. For example, I absolutely hate MacOS and would love to say "hard no" to any job offer if they insist that I use MacOS, regardless of job fit or TC. But ultimately, I back down once they show me the money, and find myself using it anyway.

Re:Ask HN: Does a static site need anything more than a simp... by kadoban on Friday April 15, 2022 @11:00AM (#31040995)
That works, as long as you know one of them.
Re:Ask HN: Does a static site need anything more than a simp... by raffraffraff on Friday April 15, 2022 @06:11AM (#31038425)
I agree about the fragile frameworks but not the rest.

In this case I'd say that "simple" is a product of familiarity, manual steps, and future maintenance. "Get a VM" also means "install stuff on a VM", "secure a VM", "monitor load, memory, disk space on a VM" and "manage a VM into the future, upgrading the host OS and fixing whatever breaks". Is rsync easier than git? Maybe, but it doesn't have version control (which is nice to have). I think the git suggestions are based on the assumption that only a tiny number of people could do VM setup, webserver config, rsync etc but couldn't do git add, commit and push.

Personally, I use Cloudflare because it handles DNS, CDN and is basically hands-off after setup.

Re:Ask HN: Does a static site need anything more than a simp... by dorfsmay on Friday April 15, 2022 @10:03AM (#31040367)
* no need to install and configure OS

* No need to install and configure web server

* No need to setup firewall

* No need to main and patch above components every day

* No need to upgrade the OS every few months/years

I have not used mercurial in close to a decade, but from what I can remember you could push to a git server from the mercurial client.

Re:Ask HN: Does a static site need anything more than a simp... by digianarchist on Friday April 15, 2022 @11:20AM (#31041206)
I'm an SRE and I'll say that all of these services are far simpler than configuring, maintaining and monitoring a VM.

If you want to maintain your Mercurial setup then consider S3 + Cloudfront.

Re:Ask HN: Does a static site need anything more than a simp... by badrabbit on Thursday April 14, 2022 @11:05PM (#31036264)
Azure websites and githubpages are nice too. Why pay when you don't have to?
Re:Ask HN: Does a static site need anything more than a simp... by swidi on Thursday April 14, 2022 @11:17PM (#31036323)
Free services never truly are, and I don't want to build something on a foundation I don't pay for. Corporate generosity always runs out eventually.
Re:Ask HN: Does a static site need anything more than a simp... by badrabbit on Friday April 15, 2022 @04:48AM (#31037902)
It is not generosity, they hook you in for free so when your needs grow you will stick with their platform and pay. Static sites are cheap to host that is why it is free.

Should your needs grow past simple static sites they are hoping you will use their paid options. This isn't a "you are the product" situation.

Re:Ask HN: Does a static site need anything more than a simp... by jzer0cool on Thursday April 14, 2022 @10:47PM (#31036175)
Does pages.cloudlare also run apps or just static pages?
Re:Ask HN: Does a static site need anything more than a simp... by wiennat on Friday April 15, 2022 @12:51AM (#31036690)
just static page. But you can use their worker service to run some server-side functions
Re:Ask HN: Does a static site need anything more than a simp... by ngcc_hk on Thursday April 14, 2022 @09:36PM (#31035744)
Miss the digital ocean 3 free site offer. May try that.
Re:Ask HN: Does a static site need anything more than a simp... by digianarchist on Thursday April 14, 2022 @09:59PM (#31035883)
Re:Ask HN: Does a static site need anything more than a simp... by Sateeshm on Friday April 15, 2022 @02:19AM (#31037107)
Yeah. My experience with hosting a svelte site on render was just amazing. Highly recommend it