Cloud Foundry Integration
Setup
The default value for Cloud Foundry config module is:
VCAP_SERVICE_PREFIX=p-config-server
The value can be updated setting the environment variable VCAP_SERVICE_PREFIX
with desirable value or via parameter.
CloudFoundry v2.x:
Example of using the Cloud Foundry module:
1 2 3 4 |
|
CloudFoundry v3.x:
Example of using the Cloud Foundry module:
1 2 3 4 5 |
|
if the environment variable VCAP_SERVICE_PREFIX
was set to p.config-server
cfenv parameter will not be necessary.
Notice
It's necessary bind Config Server with the application first.
A example application it's available on:
- Application: https://github.com/amenezes/simpleweb
- Config Example: https://github.com/amenezes/spring_config