Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

If I ignore .env with .gitignore is there a way to watch it? #302

@frederikhors

Description

@frederikhors

I have this .gitignore:

/.dist
/.tmp
/.env

... and a lot more

and as you can see I'm ignoring .env file.

I'm using this command:

cargo watch --ignore "some" --ignore "some/another" -x run

But if I change the .env file obviously it doesn't re-run.

Is there a way to tell it to watch the .env file?

Something like:

cargo watch --ignore "some" --ignore "some/another" --watch ".env" -x run

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions