Load the Rails convention before application configuration
gem "dotenvx-rails"
Usage
Add dotenvx-rails to your Gemfile. The Railtie loads from the Rails root with convention: rails and environment: Rails.env, once before configuration.
gem "dotenvx-rails"