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

bkeepers/dotenv-deployment

Repository files navigation

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)

About

Make dotenv more useful in other environments.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages