Skip to content

Instantly share code, notes, and snippets.

@josephj
Created July 7, 2014 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephj/c2336db55c78ed7cb476 to your computer and use it in GitHub Desktop.
Save josephj/c2336db55c78ed7cb476 to your computer and use it in GitHub Desktop.
# A sample Gemfile
source "https://rubygems.org"
gem 'guard'
gem 'guard-livereload'
guard 'livereload', port: 56792 do
watch(%r{app/application.views/.+\.(php|erb|haml|slim)$})
#watch(%r{app/helpers/.+\.rb})
#watch(%r{public/.+\.(css|js|html)})
#watch(%r{spec/.+\.(css|js|html)})
#watch(%r{config/locales/.+\.yml})
# Rails Assets Pipeline
watch(%r{(app)(/media/\w+/(.+\.(css|js|html))).*}) { |m| "/media/#{m[3]}" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment