about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--bin/rainbows6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/rainbows b/bin/rainbows
index b3f3a26..eec54b0 100644
--- a/bin/rainbows
+++ b/bin/rainbows
@@ -4,7 +4,7 @@ require 'unicorn/launcher'
 require 'rainbows'
 require 'optparse'
 
-env = "development"
+ENV["RACK_ENV"] = "development"
 daemonize = false
 listeners = []
 options = { :listeners => listeners }
@@ -59,7 +59,7 @@ opts = OptionParser.new("", 24, '  ') do |opts|
 
   opts.on("-E", "--env ENVIRONMENT",
           "use ENVIRONMENT for defaults (default: development)") do |e|
-    env = e
+    ENV["RACK_ENV"] = e
   end
 
   opts.on("-D", "--daemonize", "run daemonized in the background") do |d|
@@ -134,7 +134,7 @@ app = lambda do ||
     Object.const_get(File.basename(config, '.rb').capitalize)
   end
   pp({ :inner_app => inner_app }) if $DEBUG
-  case env
+  case ENV["RACK_ENV"]
   when "development"
     Rack::Builder.new do
       use Rack::CommonLogger, $stderr