Skip to content

Commit

Permalink
enable to mark env files as 'defaults only' #647
Browse files Browse the repository at this point in the history
  • Loading branch information
sagiegurari committed Apr 21, 2022
1 parent 3471f86 commit d8200a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,15 @@ env_files = [
```

In this example, the env files will be loaded in the order in which they were defined.<br>
To load only environment variables from the file that are not yet defined in the current environment, add the **defaults_only** flag as true, for example:

```toml
env_files = [
{ path = "./load_only_undefined.env", defaults_only = true },
{ path = "./load_all.env" }
]
```

To enable profile based filtering, you can use the object form as follows:

```toml
Expand Down

0 comments on commit d8200a2

Please sign in to comment.