Turns out this is the perfect config.ru .
The real problem is that the Unicorn -E RACK_ENV and Rails 2.3.18 parameter set needs RAILS_ENV to correctly define the environment.
So, at the top of config/environment.rb , I set ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] , and it works just fine.
source share