We can't deploy to staging due to a bug on how we load dotenv files by priority.
This PR fixes that. Also, it simplifies the code by never trying to load the .env file, since it would never be loaded anyway, because .env.test has more priority and it's always present because it's in the repo.
So this is how it works now:
It doesn't use dotenv at all in staging or production.
We can't deploy to staging due to a bug on how we load dotenv files by priority.
This PR fixes that. Also, it simplifies the code by never trying to load the
.env
file, since it would never be loaded anyway, because.env.test
has more priority and it's always present because it's in the repo.So this is how it works now:
.env.{RACK_ENV}
..env.test
.