{"id":78421,"library":"dotenv-rails","title":"Dotenv Rails","description":"Autoloads dotenv in Rails to load environment variables from .env files.","status":"active","version":"3.2.0","language":"ruby","source_language":null,"source_url":"https://github.com/bkeepers/dotenv","tags":["dotenv","rails","environment","configuration","secrets"],"install":[{"cmd":"gem install dotenv-rails","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'dotenv-rails', '~> 3.2.0'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"Dotenv","correct":"require 'dotenv/rails-now'"}],"quickstart":{"code":"require 'dotenv/rails-now'\n\n# In your Gemfile: gem 'dotenv-rails'\n# Then create a .env file with KEY=VALUE pairs\n# ENV['KEY'] will be available in your Rails app","lang":"ruby","description":"Load environment variables in Rails"},"warnings":[{"fix":"Add gem 'dotenv-rails', groups: [:development, :test] to your Gemfile","message":"dotenv-rails should be in the :development, :test group to avoid loading .env in production","severity":"gotcha","affected_versions":">= 0"}],"env_vars":null,"search_vec":"'autoload':3 'configur':17 'dotenv':1,4,14 'env':12 'environ':9,16 'file':13 'load':8 'rail':2,6,15 'secret':18 'variabl':10","created_at":"2026-06-18T04:17:14.026811+00:00","updated_at":"2026-06-18T04:17:14.026811+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/bkeepers/dotenv","github":"https://github.com/bkeepers/dotenv","docs":"http://www.rubydoc.info/gems/dotenv-rails/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["config"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-12-15","install_tag":null}}