Activate depending on server #69

Open
opened 2015-09-02 15:28:03 +00:00 by dankohn · 2 comments
dankohn commented 2015-09-02 15:28:03 +00:00 (Migrated from github.com)

Hi, I use rack-reload with guard-livereload and it works great. However, I also often run under a regular web server, as guard tends to interfere with setting binding.pry and debugging.

Would it be possible to add a configuration option to rack-livereload so that it only serves Javascript when being served from guard, but not when being served from unicorn (and other non-livereload-capable servers?)

Of course, it's not a big deal for livereload to be loaded and unused, but I just wanted to avoid the console errors "WebSocket connection to 'ws://localhost:35729/livereload' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED". Thanks.

Thanks.

Hi, I use rack-reload with guard-livereload and it works great. However, I also often run under a regular web server, as guard tends to interfere with setting `binding.pry` and debugging. Would it be possible to add a configuration option to rack-livereload so that it only serves Javascript when being served from guard, but not when being served from unicorn (and other non-livereload-capable servers?) Of course, it's not a big deal for livereload to be loaded and unused, but I just wanted to avoid the console errors "WebSocket connection to 'ws://localhost:35729/livereload' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED". Thanks. Thanks.
nobuti commented 2016-02-25 09:44:51 +00:00 (Migrated from github.com)

This would be nice to have.

This would be nice to have.
Frexuz commented 2016-10-19 17:48:04 +00:00 (Migrated from github.com)

+1

+1
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: github-migration/rack-livereload#69
No description provided.