Skip to content

Instantly share code, notes, and snippets.

@jferris
Created September 13, 2011 19:02
Show Gist options
  • Save jferris/1214730 to your computer and use it in GitHub Desktop.
Save jferris/1214730 to your computer and use it in GitHub Desktop.
Guard setup for spork, passenger, and bundler
group :development, :test do
gem "spork", "~> 0.9.0.rc"
gem "guard"
gem "guard-spork"
gem "guard-bundler"
gem "guard-passenger"
gem "rb-fsevent", :require => false
gem "growl", :require => false
gem "passenger"
end
guard 'spork' do
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.*\\\\.rb$})
watch(%r{^config/initializers/.*\\\\.rb$})
watch(%r{^spec/support/.*\\\\.rb$})
watch('spec/spec_helper.rb')
watch('config/routes.rb')
watch('Gemfile.lock')
end
guard 'bundler' do
watch('Gemfile')
end
guard 'passenger' do
watch(%r{config/.*\.rb})
watch('Gemfile.lock')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment