The issue with having dotenv available only in development and test environments is that it is not available in the container image (because the bundler configuration excludes these two environments when installing the gems).
We use apisonator image to test pisoni library, and the tests depend on having some internal endpoints that are only available in apisonator if RACK_ENV is development or test. These two environments try to load dotenv, but it's not available in the image.
So, the proposal is to make dotenv gem available in the apisonator image, but it should not affect the behavior, because it still won't be required in production and staging.
The issue with having dotenv available only in
development
andtest
environments is that it is not available in the container image (because the bundler configuration excludes these two environments when installing the gems).We use apisonator image to test pisoni library, and the tests depend on having some internal endpoints that are only available in apisonator if
RACK_ENV
isdevelopment
ortest
. These two environments try to loaddotenv
, but it's not available in the image.So, the proposal is to make
dotenv
gem available in the apisonator image, but it should not affect the behavior, because it still won't be required inproduction
andstaging
.