
When I thought about rebooting my blog after the posterous shutdown, I decided that I wanted to go all old school and reboot using just plain old static HTML processed through some kind of static blog generator.
So, off I went and Googled using Bing for static blog generator twitter bootstrap because I wanted a static blog generator that came with Twitter Bootstrap pre-configured. The first hit was ruhoh. The docs looked great, it was pretty straightforward to setup so I took the plunge and installed it.
Installing ruhoh was a lot harder than it looked. The main problem is due to a dependency that ruhoh has on psych which in turn has a dependency on libyaml. The Internet gave some helpful suggestions on how to fix this by statically linking libyaml into psych. So after following detailed instructions on how to Hack a Ruby Gem I was able to get psych installed and ruhoh up and running on my machine.
I have a MSDN subscription which, thanks to Scott Guthrie, entitles me to $150 / month in Azure credits. So naturally, I want to take advantage of those credits and host my shiny new static blog up on Azure Websites using my http://www.iunknown.com domain.
When I’ve finished writing a blog post, I tell ruhoh to compile the static web site using:
ruhoh compile
This generates a new directory called compiled in the root of my repository. It is this directory that I want to deploy as my azure web site, so all I need to do is add a new .deployment file to the root of my repository that contains:
[config]
project = compiled
The kudu engine powers git deployments to Azure Web Sites. Additional documentation on the format of the .deployment file can be found on Github.
Azure makes it really easy to deploy web sites to Azure using git. It really is as easy as:
git remote azure http://url-to-my-azure-git-repo
git push azure master
You can get the URL to your Azure git repo for your Azure Web Site from the Azure portal after you have created your new Web Site.
Ruhoh uses markdown as the markup shorthand for generating HTML. I’m using MarkdownPad 2 to edit this blog post.