Skip to content

Conversation

@tijn
Copy link

@tijn tijn commented Feb 20, 2024

By default godotenv.Load will load the file .env. This commit adds an option to override that. You can, for example use
--env=.env,.env.local to allow team members to override shared environment variables or --env="" to avoid loading any environment file at all.

The latter is vital for when the subprocesses load their own environment files in a certain order. I.E. dotenv-rails

Note that this option is also included in the original foreman where it functions exactly the same as far as I can tell.

By default `godotenv.Load` will load the file `.env`. This commit adds
an option to override that. You can, for example use
`--env=.env,.env.local` to allow team members to override environment
variables or `--env=""` to avoid loading any environment file at all.
@manuelvanrijn
Copy link

@mattn just a friendly ping to see if we might get this reviewed/merged?

1 similar comment
@terefang
Copy link

@mattn just a friendly ping to see if we might get this reviewed/merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants