docsifyjs/docsify-cli

about livereload

Brannua opened this issue · 9 comments

Excuse me,

I only serve just one document using docsify listening on port 3000 currently

but the live-reload is not available unless i change the port, such as execute docsify serve . -p 1234

Why I can not use the defalut port 3000 ?

And how can I detect live-reload port is being used ?

Thanks~

The default ports are 3000 and 35729.

  --port, -p             Listen port.                   [number] [default: 3000]
  --livereload-port, -P  livereload Listen port.       [number] [default: 35729]

I can't reproduce your question, what is your environment?

Thanks

image

Why I can not use the defalut port 3000 ?

And how can I detect live-reload port is being used ?

  1. Why I can not use the defalut port 3000 ?

  2. And how can I detect live-reload port is being used ?

If you do not specify a port, the default is 35729.

You can check the browser console for error messages.

image

如果我使用docsify serve .启动服务,则控制台如下,livereload 消失,这该如何定位问题?
image

@Brannua 你可以加我微信我帮你看看什么问题 ob_start

@Brannua 你可以加我微信我帮你看看什么问题 ob_start

好嘞,谢谢大佬 !

Use lsof to view port listening information

lsof -i:35729

If localhost is not available, you can try 0.0.0.0

If the pwa service is used, then it may not take effect.

demo.mp4