about summary refs log tree commit homepage
path: root/bin/rainbows
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-10 18:27:19 -0700
committerEric Wong <normalperson@yhbt.net>2010-06-10 18:29:23 -0700
commit0c08b142544e717ece5865869e14ead670f64eec (patch)
treed3d517e4572d6362242f3378a27d3a2f91a3bd75 /bin/rainbows
parentcf47d3e51d7b0aecdda8b0f27631161977900a47 (diff)
downloadrainbows-0c08b142544e717ece5865869e14ead670f64eec.tar.gz
This will allow us to be working_directory-aware as
far as config.ru goes.
Diffstat (limited to 'bin/rainbows')
-rw-r--r--bin/rainbows5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/rainbows b/bin/rainbows
index 75c361f..685dd09 100644
--- a/bin/rainbows
+++ b/bin/rainbows
@@ -110,10 +110,7 @@ opts = OptionParser.new("", 24, '  ') do |opts|
   opts.parse! ARGV
 end
 
-config = ARGV[0] || "config.ru"
-abort "configuration file #{config} not found" unless File.exist?(config)
-
-app = Unicorn.builder(config, opts)
+app = Unicorn.builder(ARGV[0] || 'config.ru', opts)
 listeners << "#{host}:#{port}" if set_listener
 
 if $DEBUG