summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-02-28 19:36:16 -0800
committerEric Wong <normalperson@yhbt.net>2010-02-28 19:36:16 -0800
commite37d8d0c6355e48fd6d2627313b9003a160f27fc (patch)
tree9453dd90c72e1ada87602fc22a7dd63b7f542ce0
parenta4a8bf7604d1c15c5a8fb9cb6be37e8bccb32e52 (diff)
-rwxr-xr-xbin/unicorn3
-rwxr-xr-xbin/unicorn_rails3
2 files changed, 2 insertions, 4 deletions
diff --git a/bin/unicorn b/bin/unicorn
index 7c65590..658d27c 100755
--- a/bin/unicorn
+++ b/bin/unicorn
@@ -112,11 +112,10 @@ ru = ARGV[0] || "config.ru"
 abort "configuration file #{ru} not found" unless File.exist?(ru)
 
 app = Unicorn.builder(ru, opts)
-require 'pp' if $DEBUG
-
 listeners << "#{host}:#{port}" if set_listener
 
 if $DEBUG
+  require 'pp'
   pp({
     :unicorn_options => options,
     :app => app,
diff --git a/bin/unicorn_rails b/bin/unicorn_rails
index 4406a34..37ee027 100755
--- a/bin/unicorn_rails
+++ b/bin/unicorn_rails
@@ -181,11 +181,10 @@ def rails_builder(config, daemonize)
 end
 
 app = rails_builder(config, daemonize)
-require 'pp' if $DEBUG
-
 listeners << "#{host}:#{port}" if set_listener
 
 if $DEBUG
+  require 'pp'
   pp({
     :unicorn_options => options,
     :app => app,