Okay, i can define RAILS_ENV from RACK_ENV. Thank you :-)
. What is the most common
> On Mon, Nov 23, 2009 at 1:33 PM, Gennady Chertanov <
alx....@gmail.com> wrote:
> > Hi.
>
> > Today i updated passenger to new 2.2.7 version and my app started to
> > work incorrectly, because it launched in development environment.
>
> > I tried to set "RailsEnv production", "RackEnv production" at my
> > httpd.conf, but this dont work.
>
> > So, maybe somenthing wrong with my
config.ru?
>
> > #!/usr/bin/env rackup -p3000
> > require "config/environment"
>
> > use Rails::Rack::LogTailer
> > use Rack::AssetPath # <- my own middleware
> > use Rails::Rack::Static
> > run ActionController::Dispatcher.new
>
> > What is wrong? Where can i read about customizing
config.ru for
> > production environments?
>
> Phusion Passenger sets RACK_ENV, not RAILS_ENV, for Rack apps.
>
> --
> Phusion | The Computer Science Company
>
> Web:
http://www.phusion.nl/