From 7a81802b8cec554568e194d286004f28d9220a5c Mon Sep 17 00:00:00 2001 From: Joel Moss Date: Thu, 25 Aug 2011 15:42:39 +0100 Subject: [PATCH] Doh! APpending -u flag instead of iincluding in default --- lib/guard/rails/runner.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/guard/rails/runner.rb b/lib/guard/rails/runner.rb index 67c49ce..dff1d80 100644 --- a/lib/guard/rails/runner.rb +++ b/lib/guard/rails/runner.rb @@ -23,7 +23,7 @@ module Guard FileUtils.rm pid_file end end - + def restart stop start @@ -33,11 +33,11 @@ module Guard rails_options = [ '-e', options[:environment], '-p', options[:port], - '-u', options[:debugger], '--pid', pid_file ] rails_options << '-d' if options[:daemon] + rails_options << '-u' if options[:debugger] rails_options << options[:server] if options[:server] %{sh -c 'cd #{Dir.pwd} && rails s #{rails_options.join(' ')} &'}