Hacker News new | ask | show | jobs
by K0nserv 3805 days ago
I don't think that it's dead and self publishing I'd argue is easier and cheaper than ever. My blog has all the power of s3 for scaling with free SSL from Cloudflare and I pay peanuts for it. Current bill is $0.03 some months it gets closer to $1.

I've written about it here https://hugotunius.se/aws/cloudflare/web/2016/01/10/the-one-...

1 comments

This is going to sound like a stupid question, but how does one use Jekyll on Windows? I've also never been quite clear whether the github Jekyll is supposed to be run locally before push or is run automatically on their side.

(also, what is S3 adding in your case? As far as I'm aware github.io sites are free, while AWS billing is not a hard limit and you're still liable for potentially huge charges if someone decides to DDOS you while you're away from a computer)

Jekyll should work on Windows because Ruby works on Windows. The reality of it is that many library developers are very bad at making sure their stuff work on Windows. http://rubyinstaller.org/ might be something to look into. Another option is to use some other static site generator instead of Jekyll.

> I've also never been quite clear whether the github Jekyll is supposed to be run locally before push or is run automatically on their side.

Depends on the setup. In all setups you are going to want to be able to run the page locally in a watch mode. `jekyll serve --watch --drafts`. When it comes to deployment it differs a bit, if you use the approach outlined in my post the actual building of the page happens on Travis which pushes the generated site to s3. With Github pages it's all taken care of by Github when you push.

> also, what is S3 adding in your case? As far as I'm aware github.io sites are free, while AWS billing is not a hard limit and you're still liable for potentially huge charges if someone decides to DDOS you while you're away from a computer

When running Jekyll with Github pages there are limitations to what kind of plugins and gems you can use. However it's a perfectly valid approach. I have a billing alert set up at $5 on AWS and to a degree Cloudflare protects me from DDOS. Honestly though most of my pages are extremely lightweight and s3 is cheap enough that even millions of requests is not going to incur huge costs. All my static assets are cached by cloudflare as well.

> Jekyll should work on Windows because Ruby works on Windows.

Jekyll is a bit of a nightmare on Windows at the moment, at least if any significant part of your workflow is based on cygwin. (I helped a colleague get it running a couple weeks ago.)

Cygwin ruby + gem install jekyll -> fail.

rbenv to build ruby from source under Cygwin, gem install jekyll -> fail.

The one solution I found that works is using Chocolatey [1] to install ruby and then gem install jekyll. Even so, I wasn't able to get pygments working for syntax highlighting, and the Chocolatey Ruby does not play nicely with cygwin terminal for interactive programs.

[1] https://chocolatey.org/