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:
parent
0ddba7cf66
commit
eeb1f472a5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue