dotenv
dotenv copied to clipboard
A Ruby gem to load environment variables from `.env`.
When running system tests with Rails 7, the development environment variable files are loaded before loading the test ones. This is most likely a bug in Rails 7, see https://github.com/rails/rails/issues/43937...
Rails had a hack that was removed in 7.0, this adds it back here.
### Expected behavior `.env.development` should have higher priority then `.env` while using `Dotenv::Railtie.overload` ### Actual behavior `#overload` method violates policy about `env` files priority. Let's say `RAILS_ENV=development` and there are...
https://github.com/bkeepers/dotenv/issues/424
# Expected Behavior dotenv should load multiline environment variables the same way Ruby loads them via CLI. ``` $ export MULTI_LINE_STR='this\nshould\nload with double escaped new lines' $ irb irb(main):001:0> ENV["MULTI_LINE_STR"]...
Hi (and since it is my first contribution to the project: thank you maintainers for Dotenv !) https://github.com/bkeepers/dotenv/pull/280 removed `.env.local` from the files loaded by Dotenv when Rails is loaded...
This basically reverts https://github.com/bkeepers/dotenv/pull/280. The above-mentioned PR says: > When using .env.local for tests, the tests are not transparent and can't be executed for example on a CI server. As...
I have a somewhat complicated .env.{dev,staging,prod} which ``` source .env.common-pre RAILS_ENV="staging" MYSQL_ROOT_PASSWORD="blah" MYSQL_USER="user" MYSQL_PASS="blah" MYSQL_HOST="1.2.3.4" MYSQL_DBNAME="mydb" source .env.common-post ``` All three environemnts source a common .env fragment at the beginning...
### Steps to reproduce I've run into an issue today, when under impression that dotenv (since it states that the file can be sources into shell) supports basically POSIX shell....
[This pull request](https://github.com/bkeepers/dotenv/pull/405) changed the default rake task to force load the Rails test environment. Setting aside any argument about how test vs. development environment in rake, installing a gem...