doczjs / docz

✍ It has never been so easy to document your things!
https://docz.site
MIT License
23.6k stars 1.46k forks source link

Getting an error when running docz on a different host, but same port as another project. #1597

Closed eddysims closed 3 years ago

eddysims commented 3 years ago

Bug Report

I have a monorepo that looks like this:

| - projects
   | - web
   | - app
   | - shared
 doczrc.js

I have web running on host 127.0.0.1 and port 1234. I have app running on host 127.0.0.2 and port 1234. I am trying to run docz on host 127.0.0.3 and port 1234.

The reason for this is so that I can alias my subdomains to be project.test, app.project.test, and docs.project.test.

This works if i start docz before i start web. However if web is running and I try to start docz I am getting an error from docz saying:

Something is already running at port 1234

However when I go to 127.0.0.3:1234 there is nothing running.


I assume that docz is only checking the port on 127.0.0.1 and not the specified host.