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

请问如何优先加载本地配置? #3469

Closed
kscMaster opened this issue Dec 31, 2020 · 3 comments
Closed

请问如何优先加载本地配置? #3469

kscMaster opened this issue Dec 31, 2020 · 3 comments
Labels
area/client apollo-client kind/question Categorizes issue when someone want to know answer of a question stale

Comments

@kscMaster
Copy link

环境:我司使用Apollo搭建,线上、公司局域网测试环境、开发这三种。开发使用的是Windwos+测试环境,线上和测试环境使用Linux部署。

问题:Windows和Linux的路径不同,application里配置了一个文件路径,本机使用Windows的IDEA跑项目,测试环境Linux同样配置文件路径,但是路径不一样。现在本机的项目跑起来,会优先加载Apollo dev上的配置,这样读取的路径就是Linux的路径,因此在Windows上找不到该路径,接口就会报错了,请问怎么解决这个问题呢?
我想知道是否有优先加载本机配置的方法,或者针对我这样的问题该如何解决?

@nobodyiam
Copy link
Member

参考下 #1560

@Anilople Anilople added area/client apollo-client kind/question Categorizes issue when someone want to know answer of a question labels Jan 4, 2021
@stale
Copy link

stale bot commented Mar 5, 2021

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in 14 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 5, 2021
@stale
Copy link

stale bot commented Jul 9, 2021

This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.

@stale stale bot closed this as completed Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client apollo-client kind/question Categorizes issue when someone want to know answer of a question stale
Projects
None yet
Development

No branches or pull requests

3 participants