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

希望SCH/ServiceComb支持通过一个环境变量来指定微服务注册到ServiceComb注册中心指定的环境 #1273

Open
little-cui opened this issue May 10, 2024 · 1 comment

Comments

@little-cui
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

ServiceComb注册中心支持微服务注册到自定义环境下,部署系统部署微服务时会按部署时指定的环境修改微服务注册的环境信息。

@little-cui little-cui changed the title 希望SCH/ServiceComb支持通过一个环境变量来指定微服务注册到ServiceComb注册中心的某个环境 希望SCH/ServiceComb支持通过一个环境变量来指定微服务注册到ServiceComb注册中心指定的环境 May 10, 2024
@chengyouling
Copy link
Collaborator

在代码中硬获取环境覆盖设置配置文件,对使用客户是一个盲盒,不具备灵活性,很容易造成干扰,所以框架目前支持配置文件占位符方式获取环境变量,如:spring.cloud.servicecomb.discovery.address=${PAAS_CSE_SC_ENDPOINT:http://127.0.0.1:30100}

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

No branches or pull requests

2 participants