Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Latest commit

 

History

History
13 lines (9 loc) · 659 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 659 Bytes

dotenv-deployment

This gem is deprecated and no longer maintained. Use dotenv-rails, or manually configure dotenv to meet your own needs.

If the environment files for your Rails application are in config, add the following lines to config/application.rb to maintain the behavior that this gem provided.

# Load defaults from config/*.env in config
Dotenv.load *Dir.glob(Rails.root.join("config/**/*.env"), File::FNM_DOTMATCH)

# Override any existing variables if an environment-specific file exists
Dotenv.overload *Dir.glob(Rails.root.join("config/**/*.env.#{Rails.env}"), File::FNM_DOTMATCH)