Pow and Rails 2.3.x apps

Pow has just been released by 37signals:

Knock Out Rails & Rack Apps Like a Superhero.
Pow is a zero-config Rack server for Mac OS X. Have it serving your apps locally in under a minute.

Usually, there’s no configuration needed at all, but in order to get my old Rails 2.3.x apps running, I needed to “rackup” all of these. Following the Rails Guides instructions, I had to create a config.ru file with the following contents:

# RAILS_ROOT/config.ru
require "config/environment"

use Rails::Rack::LogTailer
use Rails::Rack::Static
run ActionController::Dispatcher.new

Then I was good to go.
Unless…

When I tried to symlink the app in the ~/.pow directory - as described on the pow homepage - I got the following error:

~/.pow $ ln -s /path/to/myapp
ln: ./: File exists

But that was easy. I just had to add the name of the symlink explicitly:

~/.pow $ ln -s /path/to/myapp myapp

Now, I was really up and running with my Rails 2.3.x apps and pow. Bye bye Passenger.

(Be sure to have a look at the documentation. It’s the best source code documentation I’ve ever seen.)

Notes

  1. danielpietzsch posted this