News for hackers. Stuff that matters.
Re:Static site hosting hurdles by alberth on Monday September 05, 2022 @08:24PM (#32731087)
Dreamhost is hugely underrated.

Their custom panel with deep integrations are phenomenal for side projects or small businesses. In under a minute you can have your web server, SSL cert, database and more all setup and working - and you don’t have to manage any of it.

I wish more companies offered their level of managed services.

(If anyone knows of others, I’d like to hear who)

Re:Static site hosting hurdles by dragontamer on Monday September 05, 2022 @08:31PM (#32731139)
Is there anything really wrong with a CPanel host with FTP upload?

Namecheap, Dreamhost, GoDaddy even (well maybe not them lol). There are a billion shared hosts everywhere and CPanel really isn't hard to use for HTTPS enabling or getting FTP locations to work with.

------

Bonus points: shove a random .php file in there and it probably will work if you need just a little bit of dynamic content.

Re:Static site hosting hurdles by Dalewyn on Monday September 05, 2022 @10:27PM (#32731994)
>Is there anything really wrong with a CPanel host with FTP upload?

Nothing, other than that it's not cool with the kids because it's the grandpa's way of being a webmaster.

Personally, being an old school grump, I'll choose FTP upload over Git nonsense any day of the week because why in the nine seas of the seven hells do I need to sign up for Github, upload all my crap there, download-install and run a Git daemon, feed it my Github login credentials, let the daemon download and sync/compile/whatever the code I have there, and then probably run the whole contraption through sixty dozen frameworks of JavaShit to have a website?

I'll just fire up Filezilla or whatever is the trendy FTP client nowadays, punch in my login creds, upload my crap that I wrote up in Notepad++, maybe have some fun with PHP because I'm old school, and be done with it. :V

Re:Static site hosting hurdles by wildrhythms on Tuesday September 06, 2022 @06:12AM (#32735078)
Lots of us old school grumps still running things the old fashioned way for many years, serving millions of requests without issue, customers happy, and with a deployment pipeline anyone can understand :)
Re:Static site hosting hurdles by reaperducer on Tuesday September 06, 2022 @07:46AM (#32735772)
Because were more interested in getting things done, rather than tech fad signaling.
Re:Static site hosting hurdles by pdimitar on Monday September 05, 2022 @10:34PM (#32732059)
You over-focus on what's cool or fashionable. For many of us that's absolutely not the reason to go (or not to go) with a platform.

GIT is extremely useful for versioning. I want that. If I make a dumb mistake I want to have a diff that I've fixed a typo / grammar / added more links etc.

You neither need to use GitHub nor give your GitHub credentials to anything. You can just make a public repo and have it cloned / pulled-from by literally anyone interested -- why would anyone clone your public blog repo and re-host it? You can use sr.ht, Codeberg or just host your own GIT -- it's not that hard if you're into it (I am not).

Your way of doing it is fine but let's not pretend that everyone else is following fashion or coolness. That's very rarely true. There's a list of very good reasons to use a public GIT repo + Netlify + use a static site generator on your own machine to only produce a directory of HTML+CSS files.

Re:Static site hosting hurdles by Dalewyn on Monday September 05, 2022 @10:53PM (#32732197)
Generally speaking, I subscribe to the philosophy of KISS.

For a multi-user environment where a dozen people could be accessing the same file at any given time, yeah some sort of version control system will probably make everyone's life easier.

For a single user environment as is likely the case for most static websites? Yeah, it's just needless complexity.

In fact, you lost me at "static site generator". WTF? Just write the damn HTML and CSS yourself, it's static after all.

This isn't to say your way isn't wrong /for you/, of course. Whatever floats your boat. For me, it's all just unnecessary complexity that will invite in all sorts of gremlins to waste my time.

Re:Static site hosting hurdles by dragontamer on Tuesday September 06, 2022 @12:43AM (#32732928)
> In fact, you lost me at "static site generator". WTF? Just write the damn HTML and CSS yourself, it's static after all.

At a minimum, static site generators create indexes, table-of-contents, tags, sorts by date, and other such features.

Pretty much no one writes good, raw, HTML these days. Documentation is written Sphinx, texinfo, docbook, and many other formats. Why? Because compiling chapters (or pages) together through static analysis is a very useful pattern for writing.

HTML is just an output pattern. Your actual words should be in a document generator at a minimum.

Re:Static site hosting hurdles by notpushkin on Tuesday September 06, 2022 @07:24AM (#32735572)
My website [1] is good raw (X)HTML [2]. It's just a couple of pages though, nothing fancy. If I was keeping a blog or something, I would definitely go for an SSG.

[1]: https://notpushk.in/

[2]: https://gitlab.com/notpushkin/notpushk.in

Re:Static site hosting hurdles by pdimitar on Wednesday September 07, 2022 @08:00AM (#32749464)
> It's just a couple of pages though, nothing fancy

Nope. Anything I can have a machine generate for me is fancy if I have to write it by hand.

Re:Static site hosting hurdles by pdimitar on Monday September 05, 2022 @10:59PM (#32732239)
> For a single user environment as is likely the case for most static websites? Yeah, it's just needless complexity.

Hard disagree. As I said above and you ignored it (no clue why): I want to have a history of my static website.

> In fact, you lost me at "static site generator". WTF? Just write the damn HTML and CSS yourself, it's static after all.

I can and I don't want to. Markdown is tons easier, you write out an article, execute one command, push the updated HTML+CSS files to GIT and you're done. If we're talking about simplicity let's not ignore that scenario because it really is quite simple.

I got a backlog of 30 things to work on and 500+ to check out "one day when I have the time". Going back to hand-crafting HTML is likely at spot #1784 in my brain. It's a meaningless paperwork that can and must be outsourced to computers.

Re:Static site hosting hurdles by reaperducer on Tuesday September 06, 2022 @07:52AM (#32735846)
Git for static site versioning? Why not just copy the HTML into a new folder? Takes seconds. Zero complexity. Gets backed up with your regular system backups.

Git is great for collaborative or complex projects, but for a static site, you're using a freight train to bring a single tomato to market.

Re:Static site hosting hurdles by pdimitar on Tuesday September 06, 2022 @08:11AM (#32736017)
Well, even though I can reinvent `git diff` I still don't want to. GIT gives me good diffs and I don't view it as an unnecessary overhead.

¯\_(ツ)_/¯

Re:Static site hosting hurdles by monsieurbanana on Tuesday September 06, 2022 @09:36AM (#32736918)
I'm fairly certain that was a joke
Re:Static site hosting hurdles by alberth on Monday September 05, 2022 @08:35PM (#32731165)
There’s a massive difference in quality and ease of use between cPanel and dreamhost custom panel.

I’ve been a customer since 2004

Re:Static site hosting hurdles by dragontamer on Monday September 05, 2022 @08:43PM (#32731225)
Well, I'm sure that's true.

But I guess my overall point is that CPanel is way easier than anything the original poster / author wrote.

Re:Static site hosting hurdles by js4ever on Tuesday September 06, 2022 @01:47AM (#32733346)
Please check https://elest.io You can deploy WordPress, Ghost, Magento and 185 fully managed software. You get a dedicated VM with stellar performances, SSL, smtp, security, borg ans S3 backups, monitoring, logs and full root access even if it's managed. We also support CI/CD pipelines.

Disclaimer: I work there ;)

Re:Static site hosting hurdles by trinovantes on Monday September 05, 2022 @09:33PM (#32731593)
I think this is what Cloudflare Pages tries to solve

You just connect your git repo and tell it what command to run to build your site and where the html output is

Re:Static site hosting hurdles by alberth on Monday September 05, 2022 @09:45PM (#32731686)
I really love Pages but for simple apps that are just PHP and MySQL - Pages doesn’t support that.
Re:Static site hosting hurdles by Syeposxr on Monday September 05, 2022 @10:12PM (#32731894)
Well in that case it's not a static site any more.
Re:Static site hosting hurdles by chubot on Monday September 05, 2022 @08:40PM (#32731207)
FWIW I also tried NearlyFreeSpeech, which is the top comment in the same thread I linked:

https://news.ycombinator.com/item?id=29253277

I think it is good, and will solve people's static hosting problem. It's a server that you don't have to manage. It has a nice fast custom web interface.

Except I didn't realize it was FreeBSD. That probably doesn't matter for most, but I'm used to Linux, so I like Dreamhost better. Also I feel like they are using some kind of slower NFS disk, whereas Dreamhost feels like a bare metal disk mostly.

-----

I was trying to find another thread here, where someone remarked that "shared hosting" got a bad reputation in the early days due to janky control panels and bad/aggressive marketing.

Also a lot of the companies seem to have gotten acquired in the early 2000's, i.e. they changed hands a lot.

But again I've been using Dreamhost since 2009 and it's been great. No complaints except the typical thing everyone does of raising the domain name pricing after a year (the advertised price is the "first year discount").

They have not raised the hosting fees. (You might save $3 per year using a domain name purchased elsewhere, but that doesn't seem worth the hassle to me.)

So I thought there were many other shared hosting companies, but maybe not? Maybe they all got caught up in acquisitions and then the service declined? (That's exactly what's going to happen with the free cloud services you're all using now BTW, so that's why I stick with something older and proven.)

I have used 1and1 in the early 2000's, but I remember it being very janky and weird, and Dreamhost is a lot better technically. They seem to have more competent system administration.

----

FWIW here is a thread with some competitors:

https://lobste.rs/s/jkutwc/recommendations_for_shared_hostin...

Honestly I wonder if Dreamhost is more unique now than it used to be? I thought of it as "commodity shared hosting" -- i.e. a Linux OS and a web server. But I think that actually being able to manage that competently is a dying art :-/

Other threads I bookmarked while looking for shared hosting that supports FastCGI (dynamic sites, not static, and not PHP!):

bluehost: https://www.bluehost.com/help/article/fastcgi-for-php

hostgator: https://www.hostgator.com/help/article/does-hostgator-suppor...

I'd be interested to know if those companies are comparable to dreamhost!

Re:Static site hosting hurdles by kej on Monday September 05, 2022 @09:46PM (#32731689)
As a long time (but very light) Nearly Free Speech user who is also more used to Linux, I'm curious if you ran into specific problems because of them using FreeBSD, or if it was just the general feeling of things being slightly different than you're used to (which is totally a valid reason to prefer something else, I'm just wondering if it was more than that)?
Re:Static site hosting hurdles by chubot on Tuesday September 06, 2022 @12:10AM (#32732732)
I think a lot of it was the network file system issue I mentioned -- the shell felt slow, and I suspect it was because of a network disk. I can't be sure, but I think that is a significant difference between Dreamhost and NearlyFreeSpeech.

Also at that point I had used Dreamhost for ~10 years, so I was just more comfortable with it. I like how my files are in ~/oilshell.org and my logs are in ~/logs/oilshell.org. If I had started with NearlyFreeSpeech I'm sure it would have been fine

IIRC the reason I tried it was because I was looking for FastCGI support (i.e. non-PHP dynamic sites that you don't have to maintain a daemon for)

I don't quite remember, but I think they did have some FastCGI support, but it wasn't quite what I wanted, or maybe the Python version was different, etc. It looks like a great service, but I don't currently use it