Dotenv : Are the environment variables not loading in the `production` environment of your Rails application?04 Nov 2020
You have configured your
.env for all common environment variables across environments but they are not loading in
Here is a catch in the intallation doc.
Here you can see that the document mentions to install the gem only in
test environments and you just copied and pasted as is in your
The fix is simple. Just remove
groups: [:development, :test] or put the
dotenv-rails gem outside of all environment like ohter gems required in all environment.