Skip to content

dotenv file arg should take precedence over default dotenv files #5628

Closed

Description

@davidism

As pointed out in #5532, -e file is loaded after the default .env and .flaskenv files, which means it won't override env vars that are set by the defaults. It will be a little tricky to track during CLI startup, but I think it should be possible to fix this so that precedence is: os.environ > -e path > .env > .flaskenv.

Activity

  1. added this to the 3.1.0 milestone on Nov 6, 2024
  2. self-assigned this
    on Nov 7, 2024
  3. locked as resolved and limited conversation to collaborators on Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions