lib/guard/rails/runner.rb in guard-rails-0.0.3 vs lib/guard/rails/runner.rb in guard-rails-0.1.0

- old
+ new

@@ -21,11 +21,11 @@ system %{kill -KILL #{File.read(pid_file).strip}} wait_for_no_pid if $?.exitstatus == 0 FileUtils.rm pid_file end end - + def restart stop start end @@ -35,9 +35,10 @@ '-p', options[:port], '--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(' ')} &'} end