Pow guard allows to automatically & intelligently restart your applications (just by touching tmp/restart.txt)
- Tested on Ruby 1.9.3, 2.0.0, rbx & jruby
Please be sure to have Guard installed before continue.
Install the gem:
gem install guard-pow
Add it to your Gemfile (inside development group):
gem 'guard-pow', require: false
Add guard definition to your Guardfile by running this command:
guard init pow
Please read Guard usage doc
Pow guard can be really be adapated to all kind of projects. Please read Guard doc for more info about Guardfile DSL.
guard 'pow' do
watch('.powrc')
watch('.powenv')
watch('.rvmrc')
watch('Gemfile')
watch('Gemfile.lock')
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.*\.rb$})
watch(%r{^config/initializers/.*\.rb$})
end
restart_on_start: true # Restart Pow on Guard start, default: false
restart_on_reload: false # Restart Pow on Guard reload, default: true
- Source hosted at GitHub
- Report issues/Questions/Feature requests on GitHub Issues
Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change you make.