about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-02-28 19:19:23 -0800
committerEric Wong <normalperson@yhbt.net>2010-02-28 19:19:23 -0800
commit947b8e5d312446b63a7dbd5be51a1bebf421cea8 (patch)
treee399cb6a06074ac2d11728a98adba9a0de1de5ff /bin
parent706cc445863ff99d8605257a43e7bbd633c604c8 (diff)
downloadunicorn-947b8e5d312446b63a7dbd5be51a1bebf421cea8.tar.gz
Diffstat (limited to 'bin')
-rwxr-xr-xbin/unicorn_rails2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/unicorn_rails b/bin/unicorn_rails
index 5204145..a27e9df 100755
--- a/bin/unicorn_rails
+++ b/bin/unicorn_rails
@@ -4,7 +4,6 @@ require 'unicorn/launcher'
 require 'optparse'
 require 'fileutils'
 
-cmd = File.basename($0)
 daemonize = false
 listeners = []
 options = { :listeners => listeners }
@@ -13,6 +12,7 @@ set_listener = false
 ENV['RAILS_ENV'] ||= "development"
 
 opts = OptionParser.new("", 24, '  ') do |opts|
+  cmd = File.basename($0)
   opts.banner = "Usage: #{cmd} " \
                 "[ruby options] [#{cmd} options] [rackup config file]"
   opts.separator "Ruby options:"