Permalink
Browse files

Rack should respect $RACK_ENV when starting up, fixes 3rd party bugs …

…introduced by b433e48
  • Loading branch information...
1 parent dc6b54e commit 32de46c139e10dc2261ca63a3049e98e310d0781 @raggi raggi committed Jun 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/server.rb
View
2 lib/rack/server.rb
@@ -144,7 +144,7 @@ def options
def default_options
{
- :environment => "development",
+ :environment => ENV['RACK_ENV'] || "development",
:pid => nil,
:Port => 9292,
:Host => "0.0.0.0",

0 comments on commit 32de46c

Please sign in to comment.