Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Can only run 1 docsify at a time #15

Closed
jgraup opened this issue Jun 30, 2017 · 1 comment
Closed

Bug: Can only run 1 docsify at a time #15

jgraup opened this issue Jun 30, 2017 · 1 comment

Comments

@jgraup
Copy link

jgraup commented Jun 30, 2017

First of all, docsify is awesome and so is this cli. My only problem is that I want to run multiple generated docs on various ports. When I specify a port other than the last docsify serve I am presented with an exception. This happens locally and on my remote server where I want many documents to co-exist. Locally I just want to be able to edit 1-2. Remotely I am pushing more.

Is there something I am missing to allow this to happen, or is this something that needs to be fixed.

The current work-around in my setup is to run a basic static nodejs server with forever.

Here is the error I am seeing after running docsify serve . --port 3000 then docsify serve . --port 4000:

Listening at http://localhost:4000

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE :::35729
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at Server._listen2 (net.js:1259:14)
    at listen (net.js:1295:10)
    at Server.listen (net.js:1391:5)
    at Server.listen (/usr/local/lib/node_modules/docsify-cli/node_modules/livereload/lib/livereload.js:66:28)

    at Object.exports.createServer (/usr/local/lib/node_modules/docsify-cli/node_modules/livereload/lib/livereload.js:224:14)
    at Object.module.exports [as serve] (/usr/local/lib/node_modules/docsify-cli/lib/commands/serve.js:29:12)
    at Object.handler (/usr/local/lib/node_modules/docsify-cli/bin/docsify:69:28)
    at Object.self.runCommand (/usr/local/lib/node_modules/docsify-cli/node_modules/yargs/lib/command.js:231:22)

Thanks in advance!

@jgraup
Copy link
Author

jgraup commented Jul 16, 2017

It looks like this issue is common: A, B, C.

Is it possible to support passing port info to livereload() as an extra argument?

--livereload-port 35730

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

No branches or pull requests

2 participants