Most stupid patch ever, but is there a reason not to set RACK_ENV on
startup with `unicorn`, as RAILS_ENV is set with `unicorn_rails`?
Thanks
Wayne
---
bin/unicorn | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/bin/unicorn b/bin/unicorn
index 0fed11e..9967f87 100755
--- a/bin/unicorn
+++ b/bin/unicorn
@@ -58,6 +58,7 @@ opts = OptionParser.new("", 24, ' ') do |opts|
opts.on("-E", "--env ENVIRONMENT",
"use ENVIRONMENT for defaults (default: development)") do |
e|
+ ENV['RACK_ENV'] = e
env = e
end
--
1.6.0.1
_______________________________________________
mongrel-unicorn mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn