0

I need to pass some environment variables to the deploy script like user names and spaces, service plans, etc. The idea was to use env in the manifest.yml file, but I can't get that working - seems like I can only use the predefined CF_APP etc.

Any tips on passing stuff to the deploy script?

Espen

ethilesen
  • 19
  • 1

1 Answers1

0

You can define your own environment variables in manifest.yml file.

env:
  <var-name>: <value>
  <var-name>: <value>

Checkout this link https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html to see in details the fields available in manifest.yml.

priyaranjan
  • 129
  • 3
  • 1
    You can also use `cf set-env APP_NAME ENV_VAR_NAME ENV_VAR_VALUE`, also listed in the above link, if you need to set CF env vars from your environment. – Paul Webster Jun 20 '17 at 12:23