Skip to content
This repository has been 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

Open
frederikhors opened this issue Mar 16, 2024 · 3 comments
Open

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

frederikhors opened this issue Mar 16, 2024 · 3 comments

Comments

@frederikhors
Copy link

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
@passcod
Copy link
Member

passcod commented Mar 18, 2024

not yet in cargo watch. we do have negative filters in watchexec, !pattern

@frederikhors
Copy link
Author

Thanks. Can we leave this open until?

@sjunepark
Copy link

I was also curious about this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants