Registry / config / dotenv-rails

dotenv-rails

JSON →
library3.2.0rbrubygemsunverified

Autoloads dotenv in Rails to load environment variables from .env files.

gem install dotenv-rails
INSTALL
IMPORT
SIG · DOTENV-RAILS
D
dotenv-rails
configrubyv3.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Dotenv
require 'dotenv/rails-now'

Load environment variables in Rails

require 'dotenv/rails-now' # In your Gemfile: gem 'dotenv-rails' # Then create a .env file with KEY=VALUE pairs # ENV['KEY'] will be available in your Rails app
Debug
Known issues
gotchadotenv-rails should be in the :development, :test group to avoid loading .env in production
fix
Add gem 'dotenv-rails', groups: [:development, :test] to your Gemfile
affects: >= 0
Upgrade
Version history
3.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
30
Resources
dotenv-rails — gem install dotenv-rails · libregistry