Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Would be better if Rack-LiveReload didn't use a hard IP address #54

Open
NathanBowers opened this issue Apr 4, 2014 · 0 comments
Open

Comments

@NathanBowers
Copy link

Please consider embedding the LiveReload script the way LiveReload app itself advises:

<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>

Currently Rack embeds the script with a hard 0.0.0.0 IP address, and this doesn't work when testing with mobile devices over my WiFi network (because mobile devices browse to my Mac's network IP, not 0.0.0.0).

Merely specifying an IP in config.rb isn't optimal because my Mac's IP changes depending on whether I'm home or at work.

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

No branches or pull requests

1 participant