No longer maintained. Latest version is at
Failed to load latest commit information.
lib bump version Aug 24, 2012
spec Fixed notifications at start to say "Rails starting..." and "Rails st… Jan 14, 2012
.travis.yml fix travis.yml Jun 6, 2011
Gemfile fix 1.9.3 warning Jan 16, 2012
Guardfile update maintainer message, thanks to @ranmocy for taking over Jan 22, 2013
guard-rails.gemspec add deamonize option and start some tests Jun 1, 2011

This fork is no longer maintained. Visit for the current official fork.

Build Status

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

guard 'rails', :port => 5000 do

Lots of 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).
  • :daemon runs the server as a daemon, without any output to the terminal that ran guard (default false).
  • :debugger runs the server with the debugger enabled (default false). Required ruby-debug gem.
  • :timeout waits this number of seconds when restarting the Rails server before reporting there's a problem (default 20).
  • :server lets you specify the webserver engine to use (try :server => :thin).

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 more real tests.