Guard-rails is watching on your railses!
Currently, the official fork repository is at ranmocy/guard-rails. Please, come here and communicate with me.
Please make sure to have Guard installed before continuing.
Add Guard::Rails to your
group :development do gem 'guard-rails', require: false 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 change!
Lots of fun options growing!
:daemonruns the server as a daemon, without any output to the terminal that started
:debuggerenable the debugger in server. Requires ruby-debug gem. (default
:environmentis the server environment (default
:force_runkills any process that's holding the listen port before attempting to (re)start Rails (default
:pid_filespecify your pid_file (default
:hostis where the server is hosted (default
:portis the server port number (default
: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 (default
:timeoutwaits when restarting the Rails server, in seconds (default
:zeus_planthe custom plan in zeus, only works when
:zeussupport zeus to boost rails init speed (default
:CLIconstruct the runner command as you will! Will omit all options above except
rails server --pid tmp/pids/[RAILS_ENV].pid)
- Multiple instances use
pid_fileoption to run multiple instances with same rails_env.
- Avoid multiple autoruns when editing by VIM and Emacs move the backup files to somewhere else or just ignore them in Guardfile.
- Use binding.pry in Rails Actually you can't! See discussion here.
- All Platforms MRI is the main test case. But will be tested under REE and JRuby.
- Live on the 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
The best way 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 issues or pull requests there. And I will be there as your call.
- Ranmocy Sheng
- John Bintz
- Joel Moss
- Paul Schyska
- Sidney Burks
- Adam Michel
- Adib Saad
- Cezary Baginski
- Nathan Broadbent
- Tim Preston
- Benjamin Sullivan
- Darrin Holst
- Everard Brown
- Grant Hutchins and Jonathan Mukai-Heidt
- Johnny Robeson
- Leo Lou
- Luciano Sousa
- Michel Pavan Macedo
- Sho Kusano
Guard-rails is under MIT license.