Last active
December 18, 2015 16:19
-
-
Save j-mcnally/5810163 to your computer and use it in GitHub Desktop.
Live reload
This file contains hidden or 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
| config.middleware.insert_after(ActionDispatch::Static, Rack::LiveReload) |
This file contains hidden or 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
| group :development do | |
| gem 'rack-livereload' | |
| gem 'guard-livereload' | |
| gem 'guard' | |
| end |
This file contains hidden or 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 'livereload' do | |
| watch(%r{app/views/.+\.(erb|haml|slim)}) | |
| watch(%r{app/controllers/.+\.(rb)}) | |
| watch(%r{app/models/.+\.(rb)}) | |
| 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))).*}) { |m| "/assets/#{m[3]}" } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment