bkeepers / dotenv

A Ruby gem to load environment variables from `.env`.
MIT License
6.61k stars 505 forks source link

Join files to Rails.root at load time #484

Closed bkeepers closed 9 months ago

bkeepers commented 9 months ago

In v2, files were joined with Rails.root during the before_configuration callback. #468 refactored the list of files to be configurable, but caused the paths to be joined with Rails.root at the time of app initialization (before Rails.root is set).

@mvz can you try this branch out and let me know if it fixes the issue you were running into?

cc https://github.com/bkeepers/dotenv/discussions/476#discussioncomment-8464531

mvz commented 9 months ago

Yes, this works perfectly! Thanks for the quick response!