Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
drum445 committed Nov 23, 2018
1 parent af514b6 commit 7973943
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ DB_DATABASE=test
```
##### Using a file called .env and loading into your ENV var
```
```crystal
require "dotenv"
Dotenv.load # => {"ENV" => "dev", "PORT" => "3000", "LOGGING" => "true", "CORS" => "*", "DB_DRIVER" => "mysql", "DB_USERNAME" => "root", "DB_PASSWORD" => "password", "DB_HOST" => "localhost", "DB_PORT" => "3306", "DB_DATABASE" => "test"}
```

##### Using a file called .env and NOT loading into your ENV var
```
```crystal
require "dotenv"
hash = Dotenv.load(set_env: false)
```

##### Using a file NOT called .env and loading into your ENV var
```
```crystal
require "dotenv"
Dotenv.load(path: ".env.live")
Expand Down

0 comments on commit 7973943

Please sign in to comment.