diff --git a/README.md b/README.md index b2a29892..9a003533 100644 --- a/README.md +++ b/README.md @@ -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