Created
June 11, 2014 09:13
-
-
Save otaq/d87d7a1860d2be72aee9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guard 'rails', :port => 5000 do | |
watch('Gemfile.lock') | |
# watch(%r{^(config|lib)/.*}) | |
# watch('spec/spec_helper.rb') | |
watch('config/routes.rb') | |
# watch('app/controllers/application_controller.rb') | |
# watch(%r{^spec/.+_spec\.rb}) | |
# watch(%r{^app/(.+)\.rb}) | |
watch(%r{^app/models/(.+)\.rb}) | |
# watch(%r{^lib/(.+)\.rb}) | |
# watch(%r{^app/controllers/(.+)_(controller)\.rb}) | |
watch(%r{^app/jobs/(.+)\.rb$}) | |
end | |
### Guard::Sidekiq | |
# available options: | |
# - :verbose | |
# - :queue (defaults to "default") can be an array | |
# - :concurrency (defaults to 1) | |
# - :timeout | |
# - :environment (corresponds to RAILS_ENV for the Sidekiq worker) | |
guard 'sidekiq', :environment => 'development' do | |
watch(%r{^app/jobs/(.+)\.rb$}) | |
end | |
guard 'livereload', host: '192.168.7.221', port: '35729' do | |
watch(%r{^app/controllers/(.+)_(controller)\.rb}) | |
watch(%r{app/views/.+\.(erb|haml|slim)$}) | |
watch(%r{app/helpers/.+\.rb}) | |
watch(%r{public/.+\.(css|js|html)}) | |
watch(%r{config/locales/.+\.yml}) | |
# Rails Assets Pipeline | |
watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|js|html|png|jpg))).*}) { |m| "/assets/#{m[3]}" } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment