-
Notifications
You must be signed in to change notification settings - Fork 555
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
fix: override configuration from flags only if set #865
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #865 +/- ##
==========================================
- Coverage 25.58% 25.55% -0.04%
==========================================
Files 47 47
Lines 5628 5636 +8
==========================================
Hits 1440 1440
- Misses 3989 3997 +8
Partials 199 199 ☔ View full report in Codecov by Sentry. |
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 and work fine in my system
can you check codecov error before merge this it decrease coverage
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.
Thank you @fmartingr! This looks good to me and is a better solution then deprecating SHIORI_HTTP_PORT
.
Going to merge this for now so we can release a new dot version. I need to take a look at viper or something that allows us to have both flag and envvars easily. |
This pull request checks if the flags provided to the
server
command has been set (are changed from the default values) before overriding the configuration with their values.This fixes the configuration not being able to work when using only environment variables, since the default values were always overriden by the flags, regardless of being set up or not.
Ping @tenpai-git
Closes #844