Hacker News new | ask | show | jobs
by cupcakestand 3248 days ago
> Simple VPS, webserver, letsencrypt, static site generator, cloud flare for CDN duties and a little CSS.

Why didn't you host on Github Pages and you could have saved all that but having the same flexibilty regarding a SSG use case?

3 comments

GitHub suspended my account because I used it to host a "for-profit" website, which led to the website being down for several days before I checked.

I believe the last time I checked the TOS, no such mention was made for Github pages.

> GitHub suspended my account because I used it to host a "for-profit" website, which led to the website being down for several days before I checked.

What kind of website were you hosting?

A website for a car rental organization.
That's a hugely popular option for sure, and great for a ton of static site use cases, but you do sacrifice the flexibility of deploying whatever the hell you want on your own VPS. Who knows what I might want to do in the future?
> Why didn't you host on Github Pages

Tried that once, fell down a 3 day rabbit hole trying all the static blog generators.. ended up picking WordPress.

Same. For all the times this is recommended, I haven't found a static blog generator that really works well. WordPress is still the easiest and most flexible to get running, but it's a PITA to keep it maintained.

After trying Lektor (fine for general use, but hard to theme; no pre-baked templating/theming system at all) and Hugo (tbh I don't remember the exact thing here, but I got really frustrated trying to do something and ended up deciding that themeless Lektor was better), I'm now holding out hope that Ghost, while not a SSG, will be good and simple enough that I can self-host a "blog" without falling back to raw HTML editing or WordPress. Started out by having to edit the package dependencies to versions that work on recent versions of Node... :\

Write your own generator, it's pretty easy! Blogs don't have to be fancy, most programming blogs need just paragraphs, images, and code blocks. Then you can add fancier features (interactive diagrams, fancy animations, a nice deployment pipeline, etc.) as you go along.
We developed Strattic to solve the issue of difficult to maintain and optimize WordPress websites. Strattic publishes WordPress websites as static sites, and the origin site sits behind a login so it's only accessible to you. No server issues etc. Strattic is currently in beta: https://strattic.com.
Try Metalsmith if you want to poke around and write code. Try Hugo if you want something that works out of the box but that doesn't have a plugin system.
> Tried that once, fell down a 3 day rabbit hole trying all the static blog generators.. ended up picking WordPress.

I'm still falling through the very same hole. What made you pick WordPress?

Honestly no real reason other than it's the one I know and didn't want to spend any more time on finding software to write with instead of spending the time on writing

Essentially it was the default option

Heh I can empathise. Two of my biggest reasons for wanting to move to a static site generator are actually to have actual control over the content (in markdown files, and because WordPress and its plugins do a fair bit of processing on the raw content), and because I'm more comfortable hacking in languages that aren't PHP.

That seems to have stopped me from writing though.

> more comfortable hacking in languages that aren't PHP

Oddly enough it was the opposite of that for me. Each of the static site generators I looked at were non-PHP (which is fine but I lack the experience)

I tell you what, if someone ever had a gun to my head and said "make this Ruby software work first time without errors" they might as well just pull the trigger