Repository is archived
No commit activity in last 3 years
No release in over 3 years
Deployment concerns for dotenv
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0

Runtime

~> 1.0
 Project Readme

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)