Added REPLACE_ENV_VARIABLES_EXCLUDES

for #575
This commit is contained in:
Geoff Bourne
2020-07-06 16:41:56 -05:00
parent c4c3613874
commit 825833c859
3 changed files with 14 additions and 3 deletions
+3 -1
View File
@@ -306,7 +306,7 @@ defined environment variables. Variables that you want to replace need to be wra
inside `${YOUR_VARIABLE}` curly brackets and prefixed with a dollar sign. This is the regular
syntax for enviromment variables inside strings or config files.
Optionally you can also define a prefix to only match predefined enviroment variables.
Optionally you can also define a prefix to only match predefined environment variables.
`ENV_VARIABLE_PREFIX="CFG_"` <-- this is the default prefix
@@ -322,6 +322,8 @@ There are some limitations to what characters you can use.
Variables will be replaced in files with the following extensions:
`.yml`, `.yaml`, `.txt`, `.cfg`, `.conf`, `.properties`.
Specific files can be excluded by listing their name (without path) in the variable `REPLACE_ENV_VARIABLES_EXCLUDES`.
Here is a full example where we want to replace values inside a `database.yml`.
```yml