When I run cf env <app-name>
it shows all the environment variables I've set with cf set-env
, but I don't see the VCAP_SERVICES
environment variable. How can I see that variable's value?
相关问题
- Bluemix Analytics for Apache Spark log file inform
- Not able to push my local app to bluemix
- How to extract current date in watson conversation
- Can I use IBM Watson services without Bluemix?
- Debug nodejs app in CF
相关文章
- Is there an npm module to modify a pdf file in nod
- Are mongodb backups made automatically?
- Kubernetes Persistent Volume Claim mounted with wr
- How to install CloudFoundry on local server
- how to order SoftLayer_Virtual_ReservedCapacityGro
- How to download the app with the CLI from the Swis
- Can I call the Bluemix message hub service from Py
- Accessing the java executable from a cloudfoundry
cf env app-name gives VCAP_SERVICES values.
Here is the small snippet to list all the environment variables of PCF:
As of version 6.10 of the
cf
program, theVCAP_SERVICES
environment will now be displayed with the other environment variables, with the commandcf env <app-name>
.To upgrade your
cf
program, download the appropriate version on the releases page: https://github.com/cloudfoundry/cli/releasesUse the cf env command to view the Cloud Foundry environment variables for your application. cf env displays the following environment variables:
For details please refer:
http://docs.run.pivotal.io/devguide/deploy-apps/environment-variable.html
cf env your-app-name gives VCAP_SERVICES values, but only when your application was bonded with service, else you will have only VCAP_APPLICATION variable.