johnbintz/rack-livereload

Pow + rack-livereload + guard creates an issue

Closed this issue · 1 comments

I've tried with "rails s" --> running WEBrick and also with my default app local domain..

hartl.dev

but I'm always getting an issue with guard detecting the changes and generating seemingly correct output like this...

01:46:23 - INFO - Reloading browser: app/views/info_pages/faq.html.erb
01:49:09 - INFO - Pow restarted.

01:49:31 - INFO - Reloading browser: app/views/info_pages/faq.html.erb
01:50:00 - INFO - Reloading browser: app/views/info_pages/faq.html.erb

but the browsers are not reloading at all.. I tried chrome and safari. When I inspect the network tab in chrome.. i see a lot of blank-icon (no extension) "livereload" files queueing up...

Is there any fix for such an issue? This happens on mac 10.8.2 btw.

its now showing

[1] guard(main)> 02:05:40 - INFO - Browser connected.
02:05:54 - INFO - Reloading browser: app/views/info_pages/faq.html.erb
[1] guard(main)> 02:05:54 - INFO - Browser disconnected.
02:05:54 - INFO - Browser connected.
02:06:14 - INFO - Browser disconnected.

The Browser connected and disconnected is working for the first time.. I think I fixed it somehow..

I think using the short form ,

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

works better than the more detailed long form