diff options
author | Wayne Larsen <wayne@larsen.st> | 2009-11-03 21:12:47 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-03 21:25:16 -0800 |
commit | c7f2242a53ceec6892bd72f0df771266d5193004 (patch) | |
tree | 605eea28385d64188bd1f5611961440910ed8c95 /bin/unicorn | |
parent | 171df888464ec24d94a8e92e38742f86ac55d0f7 (diff) | |
download | unicorn-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/unicorn')
-rwxr-xr-x | bin/unicorn | 2 |
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 || |