提交 eeb1f472 编写于 作者: J Jeremy Kemper

RAILS_ENV falls back to RACK_ENV

上级 0ddba7cf
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
\ No newline at end of file
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册