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

配置文件中的env获取? #41

Closed
Seeley-wang opened this issue Feb 5, 2020 · 4 comments
Closed

配置文件中的env获取? #41

Seeley-wang opened this issue Feb 5, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@Seeley-wang
Copy link

image
image

配置文件读取env配置无反应,配置的非本地,报错连接的是本地的

@Yurunsoft
Copy link
Member

可以看一下imi中env的使用方式:https://doc.imiphp.com/base/config.html

目前 imi 的 env 加载顺序在 config 之后,我考虑了一下确实不对,下个版本调整一下

@Yurunsoft Yurunsoft added the enhancement New feature or request label Feb 5, 2020
@Seeley-wang
Copy link
Author

看到文档了,但是那样的话就会写的很多啊,相当于是要一个一个的去设置这样重复的也不好复用
image

@Yurunsoft
Copy link
Member

是的,调整加载顺序后就可以复用了

@Yurunsoft
Copy link
Member

@Denny-W 可以试试,现在可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants