Skip to content

Instantly share code, notes, and snippets.

@wuputah
Created March 25, 2015 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wuputah/c24181c7f526d8f52f0a to your computer and use it in GitHub Desktop.
Save wuputah/c24181c7f526d8f52f0a to your computer and use it in GitHub Desktop.
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],
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