1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

RAILS_ENV falls back to RACK_ENV

This commit is contained in:
Jeremy Kemper 2009-11-23 16:10:43 -08:00
parent 0ddba7cf66
commit eeb1f472a5

View file

@ -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 @@ module Rails
end
end
end
end
end