3scale / apisonator

Red Hat 3scale API Management Apisonator backend
https://3scale.net
Apache License 2.0
36 stars 27 forks source link

Make dotenv gem available for all environments #377

Closed mayorova closed 3 months ago

mayorova commented 3 months ago

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.