diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2013-01-29 11:21:19 +0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-01-29 04:02:57 +0000 |
commit | c43113e350aabb78c30ba64884328458db85c901 (patch) | |
tree | b906baab34fd1321b0aeded709a185ba7abc4bfb /GIT-VERSION-GEN | |
parent | fdd7c851e5664c1e629a904e21d147a9dfc950d7 (diff) | |
download | unicorn-c43113e350aabb78c30ba64884328458db85c901.tar.gz |
This would prevent Unicorn from adding default middleware, as if RACK_ENV were always none. (not development nor deployment) This should also be applied to `rainbows' and `zbatery' as well. One of the reasons to add this is to avoid conflicting RAILS_ENV and RACK_ENV. It would be helpful in the case where a Rails application and Rack application are composed together, while we want Rails app runs under development and Rack app runs under none (if we don't want those default middleware), and we don't really want to make RAILS_ENV set to development and RACK_ENV to none because it might be confusing. Note that Rails would also look into RACK_ENV. Another reason for this is that only `rackup' would be inserting those default middleware. Both `thin' and `puma' would not do this, nor does Rack::Handler.get.run which is used in Sinatra. So using this option would make it work differently from `rackup' but somehow more similar to `thin' or `puma'. Discussion thread on the mailing list: http://rubyforge.org/pipermail/mongrel-unicorn/2013-January/001675.html Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'GIT-VERSION-GEN')
0 files changed, 0 insertions, 0 deletions