-
Notifications
You must be signed in to change notification settings - Fork 27
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
config: generate default config from env #431
Conversation
我在考虑要不要让环境变量覆盖配置文件好?还是仅仅作为默认值?你觉得呢? |
readme? |
感觉只用作初始化就好,基本这种特性的都是做容器部署的时候才用到,容器拉起来之后还会进去手动修改配置的话,操作的人应该很清楚自己在干啥(大概),那还是按他手动修改过的为准靠谱。 readme 回头补上(正好 github action 炸了 连 pr 的 lint 都还没过,回头等好了一块儿整 |
那等ci好了再合了( |
ci挂了 |
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.
修一下(
好嘞 晚点修(iPhoneから送信30/3/2023 11:57、Trim21 ***@***.***>のメール:
@trim21 requested changes on this pull request.
修一下(
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
c423cfa
to
40488f9
Compare
40488f9
to
59a7f8d
Compare
ci 修了,但晚点我把 readme 也补上再合呗 |
f3d114e
to
2357c4e
Compare
|
||
环境变量 *暂不支持* 配置以下项目 | ||
``` | ||
enable_global_include_keywords |
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.
这个可以支持啊,pydantic是可以解析字符串到bool的
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.
就,反正开了这个还是要进去配置 global_include_keywords 之类的那些,环境变量就给他初始化个开关没啥用的样子。
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.
有道理
Co-authored-by: Trim21 <trim21.me@gmail.com>
支持一些环境变量用于初始化配置 #430