No longer maintained. Latest version is at https://github.com/ranmocy/guard-rails
Go to file
John Bintz bf2eaf9f58 fix a resolution issue and add a test for it 2011-06-01 10:13:04 -04:00
lib fix a resolution issue and add a test for it 2011-06-01 10:13:04 -04:00
spec fix a resolution issue and add a test for it 2011-06-01 10:13:04 -04:00
.gitignore initial commit 2011-05-27 14:41:07 -04:00
Gemfile add deamonize option and start some tests 2011-06-01 10:06:35 -04:00
Guardfile add deamonize option and start some tests 2011-06-01 10:06:35 -04:00
README.md force run feature 2011-05-31 16:15:19 -04:00
Rakefile initial commit 2011-05-27 14:41:07 -04:00
guard-rails.gemspec add deamonize option and start some tests 2011-06-01 10:06:35 -04:00

README.md

Want to restart your Rails development server whilst you work? Now you can!

guard 'rails', :port => 5000 do
  watch('Gemfile.lock')
  watch(%r{^(config|lib)/.*})
end

Four fun options!

  • :port is the port number to run on (default 3000)
  • :environment is the environment to use (default development)
  • :start_on_start will start the server when starting Guard (default true)
  • :force_run kills any process that's holding open the listen port before attempting to (re)start Rails (default false).

This is super-alpha, but it works for me! Only really hand-tested in Mac OS X. Feel free to fork'n'fix for other OSes, and to add some real tests.