Recently I wanted to use Pow with Chruby. I also needed to be able to use different Ruby versions on different projects. In this post I will explain my process. It will assume you followed my previous post about setting up Chruby.

Pow is a (almost) zero configuration server for Ruby on Rails applications. It allows anyone to access Rails applications by using the .dev top level domain.

Every project linked to Pow needs to have a .powenv file that switches the ruby version.

# Load chruby
source /usr/local/share/chruby/
# Tell chruby to switch to the version specified
chruby $(cat .ruby-version)

A .ruby-version file is also required.


If set up right, Pow should switch to the Ruby version specified in the .ruby-version file.