about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
authorWayne Larsen <wayne@larsen.st>2009-11-03 21:12:47 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-03 21:25:16 -0800
commitc7f2242a53ceec6892bd72f0df771266d5193004 (patch)
tree605eea28385d64188bd1f5611961440910ed8c95 /bin
parent171df888464ec24d94a8e92e38742f86ac55d0f7 (diff)
downloadunicorn-c7f2242a53ceec6892bd72f0df771266d5193004.tar.gz
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: <C7A9411D-CD40-4DA4-9CB3-6AA959D2D127@larsen.st>
Acked-by: Eric Wong <normalperson@yhbt.net>

[ew: setenv always, not just on CLI + commit message]
Diffstat (limited to 'bin')
-rwxr-xr-xbin/unicorn2
1 files changed, 2 insertions, 0 deletions
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 ||