Skip to content

Commit

Permalink
Docs for loading multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Jan 15, 2017
1 parent fcacc23 commit 5c9d538
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,17 @@ As early as possible in your application bootstrap process, load `.env`:
require 'dotenv/load'

# or
require 'dotenv/load'
require 'dotenv'
Dotenv.load
```

By default, `load` will look for a file called `.env` in the current working directory. Pass in multiple files and they will be loaded in order. The first value set for a variable will win.

```
require 'dotenv'
Dotenv.load('file1.env', 'file2.env')
```

Alternatively, you can use the `dotenv` executable to launch your application:

```shell
Expand Down

0 comments on commit 5c9d538

Please sign in to comment.