Skip to content

Function to get the path for the env file, if one is used #2559

Open
@Zambito1

Description

@Zambito1

I think it would be useful to have a function that would return the path of the current dotenv file, if one is currently being used. My use case is to pass the currently loaded dotenv file to docker run --env-file <dotenv path>. This seems nicer than specifying the dotenv path as an argument to the target, because it will load the expected dotenv file by default, and allow you to override it with just --dotenv-filename or just --dotenv-path, and the use of docker would be fully abstracted from the just user.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions