Skip to content

Instantly share code, notes, and snippets.

@jarednorman
Created February 22, 2016 08:02
Show Gist options
  • Save jarednorman/11b56fb223fc93c2002b to your computer and use it in GitHub Desktop.
Save jarednorman/11b56fb223fc93c2002b to your computer and use it in GitHub Desktop.
Roda to Middleman in 1 Easy Step

Roda to Middleman in 1 Easy Step

In an experiment to try to squeeze as many unicorns as I could out of a single dyno on Heroku, I built a version of this website on top of Roda, a thin routing layer for Rack.

It was successful experiment, between freezing about every object I could find, and a lot of other various tweaking, I had an app that provided me the convenicence of the workflow/tools I'm used to (code-reloading, Sprockets, Sass, Haml, Warden, etc.) that fit into a reasonably small chunk of memory.

However, it was a lot of work to get everything playing nicely, and wouldn't be worth the effort for most projects. Further, I had no reason to leave my site (which is basically just a static site) in this state, so I made a bet I could convert the entire thing to a Middleman site in under an hour, including reworking my master/staging/production Jenkins jobs to deploy to Amazon S3 rather than Heroku. I won the bet.

Presented without further comment, the worst commit in the repository: 2ede0f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment