Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get "Reloading browser", but Guard does nothing. #137

Open
domi91c opened this issue Jun 26, 2015 · 4 comments
Open

Get "Reloading browser", but Guard does nothing. #137

domi91c opened this issue Jun 26, 2015 · 4 comments

Comments

@domi91c
Copy link

domi91c commented Jun 26, 2015

When I save an edit to a view, I receive the line "00:27:28 - INFO - Reloading browser: app/views/visitors/index.html.erb" in my terminal, but Guard does nothing after that, and thus Chrome doesn't reload. I've activated the Chrome extension, am using rack-livereload, and the default Guardfile configuration for guard-livereload:

guard 'livereload' do
  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

development.rb

  config.middleware.insert_after(ActionDispatch::Static, Rack::LiveReload)

Am I missing something?

@ybur-yug
Copy link
Contributor

@portOdin this is a shot in the dark, but the fact you are using both rack-livereload and the chrome extension both may be causing some trouble. Have you tried just using one or the other in isolation rather than both? Just a thought. Let me know if that changes anything...would be happy to help debug.

@jibiel
Copy link
Member

jibiel commented Oct 18, 2015

@portOdin Do you have any updates on that? I haven't been able to reproduce the case with the data you've provided. Everything is reloading fine with and without browser extension. Are you sure you was working in the development environment?

@vizh
Copy link

vizh commented Mar 14, 2016

Have the same problem. I've disabled the extension, but still no luck.

@e2
Copy link
Contributor

e2 commented Mar 14, 2016

@vizh - try the wiki: https://github.com/guard/guard-livereload/wiki/Troubleshooting

First, update your Guardfile to match the default Guardfile template from guard-livereload. Some Guardfile rules have been updated for rails, so this might be the cause.

Then try and follow the Troubleshooting page, see where it doesn't work, and ideally paste the output of running guard in debug mode.

The Troubleshooting page isn't perfect, so ask for any clarification you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants