Skip to content

Commit 7be64de

Browse files
author
Christopher Frost
committed
Update docs for setting env variables
The documentation contained no information about how to escape strings when setting an environment variable on an application to update the buildpack configuration. This change adds an example.
1 parent 4a34cac commit 7be64de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ Buildpack configuration can be overridden with an environment variable matching
3131

3232
```cf set-env my-application JBP_CONFIG_OPEN_JDK_JRE '[version: 1.7.0_+, memory_heuristics: {heap: 85, stack: 10}]'```
3333

34+
If the key or value contains a special character such as `:` it should be escaped with double quotes. For example, to change the default repository path for the buildpack.
35+
36+
```cf set-env my-application JBP_CONFIG_REPOSITORY '[ default_repository_root: "http://repo.example.io" ]'```
37+
3438
Environment variable can also be specified in the applications `manifest` file. See the [Environment Variables][] documentation for more information.
3539

3640
To learn how to configure various properties of the buildpack, follow the "Configuration" links below. More information on extending the buildpack is available [here](docs/extending.md).

0 commit comments

Comments
 (0)