aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/runner.rb
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-12-06 02:05:33 +0900
committerkennyj <kennyj@gmail.com>2012-12-06 02:05:33 +0900
commita7695579a5979245f7d5e683a67bbfc096f3099a (patch)
tree07955176072c0881e71dfc782fbb3d730560a262 /railties/lib/rails/commands/runner.rb
parent396c0681acab95a58f0583d722f488b5b01398d8 (diff)
downloadrails-a7695579a5979245f7d5e683a67bbfc096f3099a.tar.gz
rails-a7695579a5979245f7d5e683a67bbfc096f3099a.tar.bz2
rails-a7695579a5979245f7d5e683a67bbfc096f3099a.zip
Add ENV['RACK_ENV'] support to rake runner/console/server.
Diffstat (limited to 'railties/lib/rails/commands/runner.rb')
-rw-r--r--railties/lib/rails/commands/runner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/runner.rb b/railties/lib/rails/commands/runner.rb
index 62d82cc005..6adbdc6e0b 100644
--- a/railties/lib/rails/commands/runner.rb
+++ b/railties/lib/rails/commands/runner.rb
@@ -1,7 +1,7 @@
require 'optparse'
require 'rbconfig'
-options = { environment: (ENV['RAILS_ENV'] || "development").dup }
+options = { environment: (ENV['RAILS_ENV'] || ENV['RACK_ENV'] || "development").dup }
code_or_file = nil
if ARGV.first.nil?