Easier Rails Development with pow.cx

Pow.cx, a tool released by 37Signals, lets you easily run your Rails/Rack apps locally with close to zero configuration.


$ curl get.pow.cx | sh
*** Installing Pow 0.4.1...
*** Installing local configuration files...
*** Installing system configuration files as root...
*** Starting the Pow server...
*** Performing self-test...
*** Installed

For troubleshooting instructions, please see the Pow wiki:


To uninstall Pow, `curl get.pow.cx/uninstall.sh | sh`

Now to configure a new Rails/Rack app running locally all you need to do is:

$ cd ~/.pow
$ ln -s /path/to/your/app

Now visit http://yourappname.dev and marvel at the fact that it’s already running!

To make life even easier, install the Powder gem:

$ gem install powder

Now you can start and stop Pow like this:

$ powder up
$ powder down

And more, see the Powder README.

Debugging with pow

Use powder applog to tail the app’s log much as if you were watching the output of the development server.

To use the debugger however you’re going to need to have your Rails app start a debug server that you can connect to. Pow has a helper for this (powder debug) but in the current gem version (0.2.0) this is broken due to the URLs for gists on Github changing. It has been fixed but a new version of the gem hasn’t been published at time of writing so if you need this functionality then you’ll want to install from Github directly:

gem 'powder', :git => 'https://github.com/rodreegez/powder.git'

You will then have what looks like version 0.2.0 of the gem installed but it won’t be. A little unfortunate but this will go away when a new version of the gem is published.