Re: CF Environment Variable Interpolation


Chip Childers <cchilders@...>
 

Have you confirmed that your application is still bound to the relevant
service instance?

On Mon, Feb 6, 2017 at 10:43 AM Olga Reva <reva.olga(a)gmail.com> wrote:

Since migration to Diego, our Spring Boot Applications cannot access
properties defined in application.properties files like the following:

gateway.services.dashboard =
${vcap.services.dashboardService.credentials.url:http://localhost:8081}

gateway.credentials.dashboard.username=${vcap.services.dashboardService.credentials.username:username1}

gateway.credentials.dashboard.password=${vcap.services.dashboardService.credentials.password:pwd1}

I.e. app try to connect to http://localhost:8081 instead of using of
predefined variables vcap.services.dashboardService.credentials.url...

How to change configs to access variables using vcap.services...
?
Can anybody help me?
--
Chip Childers
CTO, Cloud Foundry Foundation
1.267.250.0815

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.