-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from slhck/update-docs
update docs
- Loading branch information
Showing
6 changed files
with
62 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
## Examples | ||
|
||
- [Basic Usage](/examples/basic) | ||
- [Change `.env` filename](/examples/change_file) | ||
- [Change `.env.template` filename](/examples/change_template_file) | ||
- [Example: Change the `.env` filename](/examples/change_file) | ||
- [Template files, changing `.env.template` filename](/examples/change_template_file) | ||
- [Hierarchical dotenv definitions](/examples/hierarchical_definitions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
## Change template file example | ||
## Example: Template files, changing `.env.template` filename | ||
|
||
version since: 2.1.0 | ||
This example works with versions ≥ 2.1.0. | ||
|
||
This example shows you how to use a template `.env` file, and how to change its name. In this example, the `.env.example` file is used as a template for generating the final environment. The default filanem `.env.template` is overriden in `gradle.properties`. | ||
|
||
You can see that `FOO=` is set in the `.env.example` file, and `BAZ` is set in the `.env` file. | ||
|
||
Run the following command to confirm that the DotEnv template file to be loaded has changed. | ||
|
||
- `./gradlew clean` | ||
- Edit `gradle.properties`, and `./gradlew clean` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters