Apache Passenger with Rails 3 Environment

apache-2.2phusion-passengerruby-on-rails

I'm running a new Rails 3 app through Apache Passenger, and am trying to run it in the stage environment. I have my configuration file set up properly according to the documentation as well as previous Apache Passenger apps, but I can't get it to run in the proper environment, even though I'm specifying it in my VirtualHost config as so:

RailsEnv stage

Any suggestions?

Note: If it matters, I'm using Ruby 1.9.2-p0

Best Answer

Rails 3 counts as a rack application, so change the config to:

RackEnv stage