From c7f2242a53ceec6892bd72f0df771266d5193004 Mon Sep 17 00:00:00 2001 From: Wayne Larsen Date: Tue, 3 Nov 2009 21:12:47 -0800 Subject: bin/unicorn: set ENV["RACK_ENV"] on startup Although not currently part of the Rack specification, ENV["RACK_ENV"] is at least a de facto standard. Some of the popular Rack servers (Thin, Passenger) and frameworks (Merb, Sinatra) already set or use it. ML-Ref: Acked-by: Eric Wong [ew: setenv always, not just on CLI + commit message] --- bin/unicorn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/unicorn b/bin/unicorn index 0fed11e..1916098 100755 --- a/bin/unicorn +++ b/bin/unicorn @@ -118,6 +118,8 @@ if config =~ /\.ru$/ end end +ENV['RACK_ENV'] = env + require 'pp' if $DEBUG app = lambda do || -- cgit v1.2.3-24-ge0c7