dotenvs-cr
dotenvs
Small extension to cr-dotenv that loads .env
files in the following order:
.env
.env.development
- depends on environment.env.development.local
- depends on environment, file should be excluded from repo
Installation
Add this to your application's shard.yml
:
dependencies:
dotenvs:
github: qbart/dotenvs-cr
Usage
require "dotenvs"
Dotenvs.load("development")
Dotenvs.load(ENV["KEMAL_ENV"])
Dotenvs.load(ENV.fetch("KEMAL_ENV", "development"))
# ...
# production env is skipped, if you want to load .env files anyway, you can do:
Dotenvs.load(ENV["KEMAL_ENV"], allow_production: true) # default is false
Repository
dotenvs-cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 1
- over 6 years ago
- August 6, 2018
License
MIT License
Links
Synced at
Sun, 17 Nov 2024 04:15:00 GMT
Languages