Setting up Middleman and Anvil with RVM

less than 1 minute read

I’m a big fan of designing with code, design in the browser or… whatever you want to call it. Middleman and Anvil work out as a nice pairing to create an efficient workflow. The rub is they don’t play well together without a touch of configuration up front.

In the documentation

middleman init my_new_project --rack

The missing bits to make Anvil (pow) work

rvm --create --ruby-version use 1.9.3

rvm env . -- --env > .powenv

Bob’s your uncle

In Anvil add your project by clicking the “Plus” icon and navigating to your new project’s directory

This configuration is out there, but not all in one place. I’m wrote this so I can stop Googleing for the same thing everytime I start a new project.