With the launch of this blog, I’ve recently come to enjoy the wonder that is Jekyll. For those unfamiliar, it’s a dead-simple, blog-aware, static site generator built with Ruby, and is even used by GitHub for their Pages.
My only complaint has been with automating the site regeneration and deployment. I wanted a way to easily integrate it with GitHub’s post-receive hooks so that the site is pulled and regenerated on my server after any code is pushed.
AutoHyde makes that all possible. Once installed, all you need to do is run the executable (with appropriate options) and it will start up a lightweight Sinatra server with a single route, ‘/auto-hyde.’ Then just point your GitHub post-receive hook at
http://your-server.com/auto-hyde and you’re ready to go.
Here is a list of the options available from the command-line:
The most important options are
-b, your Jekyll blog directory and the directory you want the site generated in respectively. When the route is hit, it will
cd into your blog dir,
git pull, and then use the
jekyll command line to regenerate the site.
The gem is already available via Gemcutter/Rubygems, just run:
If you’re interested, the code is also up on my GitHub repo. I must admit that I haven’t tested the email functionality yet (it uses Pony), as my ISP won’t allow SMTP out. So if anyone notices a bug there, or anywhere else, please let me know.