-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: supports retrieving the port from the configuration file (#250) #251
Conversation
Someone is attempting to deploy a commit to the no-veronica Team on Vercel. A member of the Team first needs to authorize it. |
see issue #250 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@JarryChung 单测没通过,需要看看 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #251 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 13 13
Lines 95 95
Branches 19 19
=========================================
Hits 95 95 ☔ View full report in Codecov by Sentry. |
@fengmk2 我关注到单测的 demo-app 不是一个标准的 egg 应用,会导致获取配置文件失败,因此我将获取配置文件的逻辑放在 try...catch... 中了,当获取失败时,使用原来的的逻辑。这个处理方式应该要健壮一些,可以避免外部依赖带来的影响。 |
[skip ci] ## [6.8.0](v6.7.0...v6.8.0) (2024-02-01) ### Features * supports retrieving the port from the configuration file ([#251](#251)) ([07e150f](07e150f))
Checklist
npm test
passesAffected core subsystem(s)
Description of change
Adjust the order in which ports are obtained:option
--port
> egg.js configurationconfig/config.*.js
>process.env.EGG_BIN_DEFAULT_PORT
> 7001 > other available ports.closes #250