Skip to content

livereload script pointed to local IP #120

Open
@lazuardi1981

Description

@lazuardi1981

I am using docsify-cli, and run from docker, and route to the docker server from separate server using reverse proxy.

I found livereload is injected to index as follow.

<script src="//$server_ip$:35729/livereload.js?snipver=1" async="" defer=""></script>

of course it could not be found because s e r v e r i p is local IP.

Screen Shot 2020-09-09 at 12 06 29

is there any countermeasure for this?

Activity

maschinensehen

maschinensehen commented on Jul 5, 2021

@maschinensehen

same issue here. any solution?

kosperera

kosperera commented on Mar 25, 2023

@kosperera

I too wonder why the live reload isn't working when using devcontainers. See code @alertbox/devcontainers-try-docsify. It appears to be the live reload works if exposed according to #26 but the container is exposed via docsify serve . -P 3000.

donnerluetjen

donnerluetjen commented on Jul 9, 2024

@donnerluetjen

Same problem using docsify-cli in a docker container:
This is injected :
<script src="//localhost:35729/livereload.js?snipver=1" async="" defer=""></script></body>
and I get
image

Is there a workaround or fix available?

sy-records

sy-records commented on Jul 9, 2024

@sy-records
Member

The livereload should generate links based on how you access it, e.g. for 127.0.0.1 it will generate 127.0.0.1:35729.

I would recommend using nginx instead of docsify-cli to start serve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      livereload script pointed to local IP · Issue #120 · docsifyjs/docsify-cli