Created
March 25, 2015 20:12
-
-
Save wuputah/c24181c7f526d8f52f0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/rack/server.rb b/lib/rack/server.rb | |
index 33d5389..27f1244 100644 | |
--- a/lib/rack/server.rb | |
+++ b/lib/rack/server.rb | |
@@ -233,6 +233,7 @@ module Rack | |
logging_middleware, | |
[Rack::TempfileReaper] | |
] | |
+ m["production"] = m["deployment"] | |
m["development"] = [ | |
[Rack::ContentLength], | |
[Rack::Chunked], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/unicorn.rb b/lib/unicorn.rb | |
index 467245d..974c373 100644 | |
--- a/lib/unicorn.rb | |
+++ b/lib/unicorn.rb | |
@@ -67,7 +67,7 @@ module Unicorn | |
use Rack::Lint | |
run inner_app | |
end.to_app | |
- when "deployment" | |
+ when "deployment", "production" | |
Rack::Builder.new do | |
use Rack::ContentLength | |
use Rack::Chunked |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment