Lurker News
This is more of a thought experiment, I know a multitude of ways to do this which require loads of setup, jumping through AWS hoops, etc. I'd like ideally way to deploy to a hosted service with a single command. Imagine Heroku but even easier.

Comments (487) 172 threads

Earlier comments
Bender3 replies#
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/

john-doe1 reply#
Seconded. Their CLI has all you need, even git hooks. Personally I just use `neocities push .`
LolWolf#
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)

pwdisswordfish61 reply#
You are limited to one *.neocities.org site, otherwise it's $60 per year.
poopsmithe1 reply#
I have unlimited neocities subdomains and pay $0 a year. I must be on a discontinued plan, but at one time there was a $100 lifetime offer.
john-doe2 replies#
Sounds like the perfect plan. How many of the companies mentioned in this thread will be around in 10 years? I'd bet on neocities.

Continue this thread — 2 replies

xorcist#
Neocities must have an interesting story behind it. I seem to remember something about it being part of an effort to salvage Geocities. Has the story been written down somewhere?
purec1 reply#
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 .

BrandoElFollito2 replies#
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.

villasv1 reply#
You can, it's just very convoluted.

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

VPenkov#
One of those stories that get posted every other month about "How I racked up $xx000 bill for Firebase" explained that they had billing alarms but they weren't exactly real time.

Also, you might be the main/only site administrator, in which case falling asleep might end up badly for you.

mtlynch2 replies#
You don't mean literally distributed denial of service attack, right? It's super easy to keep serving a static resource, so I think you'd need a huge amount of traffic to put a dent in Firebase's static hosting capacity.

I've had spikes of up to 300k visitors to my Firebase blog in a month, and the bill was like $150. It seems hard to get bitten by huge surprise costs from a blog on Firebase static hosting, even if someone's using a botnet to try to drive up your bill.
Edit: Thinking about it a little more, I guess you could find the largest resource on a blog and direct your botnet to download it nonstop repeatedly, and that would be orders of magnitude more expensive than even large organic traffic.

BrandoElFollito#
> so I think you'd need a huge amount of traffic to put a dent in Firebase's static hosting capacity.

No, I was referring to your bill, when your resource usage spikes (really spikes, as in sustained Gbps+ traffic spikes). Many people were taken aback by the unexpected bills.

dkarras#
That is... $150 you definitely didn't have to spend.
aequitas3 replies#
Check with your ISP, they often offer some 10 or sometimes 50! MB of free space to host your homepage and images under an account url, eg: http://example.com/~you. Uploading is easy, just FTP your files to their server and your done!

I miss the old days :(

tgiba#
OVH offers 10MB hosting when you get a domain with them. With FTP access.
Symbiote1 reply#
The in-between days (after dial-up ISPs, but before "cloud" meant people forgot they could do things themselves) was to host the website on your own computer. For example, an old laptop, a Raspberry Pi, or an always-on-anyway desktop.

I host my personal site this way.
I also host about 100 mostly-static mostly-low-use websites at work similarly: with Apache on a couple of VMs. They are more reliable than the free versions of Netlify etc, and the systems work to maintain 100 static websites is little different to maintaining 5 static websites.

warent5 replies#
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
tenebrisalietum5 replies#
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.

Continue this thread — 5 replies

290830113977781 reply#
They don't, but my ISP-provided modem/router combo has built-in integration with a dynamcic DNS service. If your domain name follows whatever your IP is, it's close enough to static (at least for my uses)

Continue this thread — 1 reply

ForHackernews#
Some ISPs do offer static IPs to residentials users (many of the top 10 here https://www.ispreview.co.uk/review/top10.php)

As IPv6 becomes more widely adopted, there will be no need to conserve IP addresses and everyone can be allocated a block of them.

bombcar#
My IP and a friends have been the same for five+ years even though it’s technically dynamic. DYDNS hasn’t really done much.
nextlevelwizard#
In my experience IP addresses rarely change from under you. There has to be actual noticeable outage of service. But in that case you can just use any of the free dynamic dns services. Back in the day I didn’t even have proper domain name I just used dyndns
stevage#
Then you're locked into your ISP forever.
rantwasp4 replies#
AWS S3 + Cloudfront. The initial setup can be a little finicky, but once you do get it setup, the rest of the time you only do an S3 sync from your local dir to the S3 bucket.

It will also be stupid fast (cloudfront is edge networks) + have ssl + it will not go down if you ever see a surge in traffic.
I have several of these and they work beautifully. As far as cost goes: 12$/domain per year + 0.5$/month for route53 zone + 0.2$/month for the actual traffic and hosting the content in S3. So it's under 2$/month for "enterprise grade"

Ayesh1 reply#
> So it's under 2$/month for "enterprise grade"

Except that it isn't.
Only the domain, and to some extend, the S3 costs are the "fixed" cost that you can even predict at first. A surge in traffic will surely increase the egress data, and that is easily $0.05-0.10 per GB.
Cloudfront is one of the most expensive CDNs out there, and after 2-3 years of use, I came to realize how much I was wasting money on. CDNs often work quite flawlessly if you have a good cache busting mechanism, and I was paying a huge premium for what was essentially a set-once operation.

rantwasp1 reply#
let’s talk numbers. how much egress traffic would you have?

at 10GB per month you pay 0.8$/month yes the traffic it costs extra, but a static website should not be GB (or even MB) in size. Also, if you have a lot of traffic you should learn how to control the caching aspect.
i would also challenge you to look at what egress traffic costs in other places.

danielheath2 replies#
For $work I reduced our cloudfront egress bill by over $2000 / month by putting cloudflare in front of cloudfront.

For a side project I likely wouldn't bother, but the pricing differential is really damn steep.

Continue this thread — 2 replies

Arnavion1 reply#
Yes, I have a similar setup on Azure - Azure Storage account with an Azure CDN fronting it. It's less than a single US cent per month for the hosting and bandwidth costs atm.
iamacyborg#
I did this for a while, the ability to deploy to Azure from within Visual Studio Code was also quite fun.
ramraj07#
I put my site on s3, gatsby deployed from GitHub actions automatically after merge with master, and put Cloudflare in front of it. Remember reading that Cloudflare might throttle the free plan sometime but never noticed! And it’s free so can’t complain!
stevage#
OP literally pointed out AWS as the kind of thing they want to avoid because it's too complicated.

Load more comments