Guard-rails is watching on your railses!
Main repository
Currently, the official fork repository is at ranmocy/guard-rails. Please, come here and communicate with me.
Install
Please make sure to have Guard installed before continue.
Add Guard::Rails to your Gemfile:
group :development do
gem 'guard-rails'
end
Add the default Guard::Rails template to your Guardfile by running:
$ guard init rails
Now I can automatically restart your Rails development server as your files changed!
Lots of fun options growing!
:daemonruns the server as a daemon, without any output to the terminal that ranguard(defaultfalse):debuggerenable the debugger in server. Required ruby-debug gem. (defaultfalse):environmentis the server environment (defaultdevelopment):force_runkills any process that's holding the listen port before attempting to (re)start Rails (defaultfalse):pid_filespecify your pid_file (defaulttmp/pids/[RAILS_ENV].pid):portis the server port number (default3000):rootlets you specify the Rails root, i.e. for using guard-rails to run a dummy app within an engine (try:root => '/spec/dummy').:serverthe webserver engine to use (try:server => :thin):start_on_startwill start the server when starting Guard (defaulttrue):timeoutwaits when restarting the Rails server, in seconds (default30).:zeus_planthe custom plan in zeus, only works whenzeusoption istrue(defaultserver):zeussupport zeus to boost rails init speed (defaultfalse).:CLIconstruct the runner command as your willing! Will omit all options above exceptpid_file! (defaultrails server --pid tmp/pids/[RAILS_ENV].pid)
How-to
- Multiple instances use
pid_fileoption to run multiple instances with same rails_env
Philosophy
- All Platforms MRI is the main test case. But will be tested under REE and JRuby.
- Live in edge Ruby 1.8.7 has been deprecated. Guard-Rails will be tested under Ruby 1.9.3, 2.0.0 with newest gems. Will be rewrited with features of Ruby 2.0.0 as version 1.0.0.
- Semantic Version
Contribute
The best choise to contact me is the Issues and Pull Request system on GitHub. Currently the official fork repository is at ranmocy/guard-rails.
Please, post your issue or pull request there. And I will be there as your call.
Contributor
- Ranmocy Sheng
- John Bintz
- Joel Moss
- Sidney Burks
- Paul Schyska
- Tim Preston
- Nathan Broadbent
- Adam Michel
- Benjamin Sullivan
- Everard Brown
- Darrin Holst
- Grant Hutchins and Jonathan Mukai-Heidt
- Michel Pavan Macedo
- cablegram



