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

请问怎么知道端口被占用后动态生成的新端口 #96

Open
zhangdp opened this issue Mar 21, 2024 · 1 comment
Open

请问怎么知道端口被占用后动态生成的新端口 #96

zhangdp opened this issue Mar 21, 2024 · 1 comment

Comments

@zhangdp
Copy link

zhangdp commented Mar 21, 2024

prod环境,egg发现端口已被占用后会使用新的动态端口,那么代码有提供怎么获取当前端口的api吗?或者有什么办法能知道当前端口?

@wallace5303
Copy link
Collaborator

?prod环境加载是是前端的dist资源,所以不存在前端端口吧

dev环境加载的是前端启动的server服务

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