Browse files

RAILS_ENV falls back to RACK_ENV

  • Loading branch information...
1 parent 0ddba7c commit eeb1f472a5561e769b7e6df923f4c91a7d72379d @jeremy jeremy committed Nov 23, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/initializer.rb
View
4 railties/lib/rails/initializer.rb
@@ -1,6 +1,6 @@
require "rails" # In case people require this file directly
-RAILS_ENV = (ENV['RAILS_ENV'] || 'development').dup unless defined?(RAILS_ENV)
+RAILS_ENV = (ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development').dup unless defined?(RAILS_ENV)
module Rails
class Initializer
@@ -14,4 +14,4 @@ def self.run(initializer = nil, config = nil)
end
end
end
-end
+end

0 comments on commit eeb1f47

Please sign in to comment.