Add ENV['RACK_ENV'] support to rake runner/console/server. #8427

merged 1 commit into from Dec 5, 2012

2 participants


rake dbconsole support ENV['RACK_ENV']. And railties/lib/rails.rb also support one.

 87     def env
 88       @_env ||= begin
 89         ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
 91       end
 92     end

I thinks we should use RACK_ENV for usefulness and consistency.

@rafaelfranca rafaelfranca merged commit ddd4fac into rails:master Dec 5, 2012
Ruby on Rails member


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment