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

自动递增端口 #25

Closed
dkvirus opened this issue Nov 8, 2019 · 2 comments
Closed

自动递增端口 #25

dkvirus opened this issue Nov 8, 2019 · 2 comments

Comments

@dkvirus
Copy link
Contributor

dkvirus commented Nov 8, 2019

问题

本地有两个 teadocs 工程,启动第一个工程:

project1 $ teadocs dev 

启动第二个工程:

project2 $ teadocs dev
<====  报错,端口已启动,请重新指定端口

端口冲突,此时可以通过指定端口启动第二个项目:

project2 $ teadocs dev -p 3100

这很麻烦。

期望

起第二个工程时,会自动检测端口是否启动,如 3000 端口已启动,会自动递增启动 3001 端口。

类似这种模式在命令行工具中很常见,提升用户体验。

@lisniuse
Copy link
Member

这个功能可以有。

@lisniuse
Copy link
Member

另外,今天(2019.11.12)已经发布了 v 0.4.0 。

dkvirus added a commit to dkvirus/teadocs that referenced this issue Nov 12, 2019
@dkvirus dkvirus closed this as completed Nov 12, 2019
lisniuse pushed a commit that referenced this issue Nov 13, 2019
* feat: tree.md 功能优化 (#24)

* feat: 包有更新时自动通知用户

* feat: 端口自动增长 (#25)
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