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

Activate depending on server #69

@dankohn

Description

@dankohn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions