No longer maintained. Latest version is at https://github.com/ranmocy/guard-rails
b2c1d9d006 | ||
---|---|---|
lib | ||
spec | ||
.gitignore | ||
Gemfile | ||
Guardfile | ||
README.md | ||
Rakefile | ||
guard-rails.gemspec |
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
Five fun options!
:port
is the port number to run on (default3000
):environment
is the environment to use (defaultdevelopment
):start_on_start
will start the server when starting Guard (defaulttrue
):force_run
kills any process that's holding open the listen port before attempting to (re)start Rails (defaultfalse
).:deamon
runs the server as a daemon, without any output to the terminal that ranguard
(defaultfalse
).
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.