Skip to content

Cloud Foundry Integration

from config.cf import CF

cf = CF()
cf.get_config()

For custom env:

from config.cf import CF
from config.cfenv import CFenv

cf = CF(cfenv=CFEnv(vcap_service_prefix="p.config-server))
cf.get_config()

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