No longer maintained. Latest version is at https://github.com/ranmocy/guard-rails
Go to file
2013-01-20 09:05:53 +08:00
lib fix pid_file cannot monitored issue 2013-01-20 08:05:59 +08:00
spec use mocha_standalone to avoid warning 2013-01-20 09:05:53 +08:00
.gitignore Swapped run_all for reload. 2011-10-17 14:33:27 +11:00
.travis.yml fix travis.yml 2011-06-06 15:02:32 -04:00
Gemfile specify mocha version to ensure test not broken 2013-01-20 00:21:36 +08:00
guard-rails.gemspec update gemspec 2013-01-20 09:04:56 +08:00
Guardfile add deamonize option and start some tests 2011-06-01 10:06:35 -04:00
Rakefile bump version 2012-01-16 09:31:09 -05:00
README.md update old info in README 2013-01-20 08:30:22 +08:00

Build Status

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

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).
  • :pid_file specify your pid_file, so that maybe you can run multiple instances with same rails_env (default tmp/pids/[RAILS_ENV].pid)
  • :zeus support zeus to boost rails init speed.

Feel free to fork'n'fix for any willing.