You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a project with multiple client apps (each using middleman) and I noticed that livereload was conflicting with each other. When I set :port option on each one, it was still not working.
I'm doing some issue-gardening 🌿🌷🌾 and came across this issue.
Sorry that this has lingered for quite a while!
Thanks for your thorough digging into this! Do you have any suggestions for a remedy? Happy to review a PR!
(this repo is maintained by a few people contributing their free time, unfortunately we can't solve every issue on our own, so help from others is needed for some of the more exotic issues that crops up)
I'm developing a project with multiple client apps (each using middleman) and I noticed that livereload was conflicting with each other. When I set
:port
option on each one, it was still not working.here's how i'm setting it:
the result was this in my
<head>
tag:Notice how the
RACK_LIVERELOAD_PORT
window variable isn't changing (but the script port is).After some digging, this commit fixed things for me:
jacquescrocker@4125b4a
I really don't understand the difference on rack-livereload between
:port
andlive_reload_port
but I know if I don't set both, it doesn't work.Digging around the rack-livereload project:
it's using
options[:port]
here: https://github.com/johnbintz/rack-livereload/blob/master/lib/rack/livereload/body_processor.rb#L105and it's using
options[:live_reload_port]
here: https://github.com/johnbintz/rack-livereload/blob/master/lib/rack/livereload/body_processor.rb#L13and also here: https://github.com/johnbintz/rack-livereload/blob/master/skel/livereload.html.erb#L12
Hope this helps someone
The text was updated successfully, but these errors were encountered: