-
-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up /etc/hosts on ddev remove (remove unused hostnames) #831
Comments
I definitely agree, thanks for bringing this up. |
I suggest |
I was poking around this issue last night and uncovered how the
As a user, an "add this hostname" command implies an equal and opposite "remove this hostname" command, but that doesn't currently exist. |
I'm good with this general approach @andrewfrench . It's all the easier since we rarely suggest that people actually use the |
👍 |
It's trivial to hide: Might not be desirable though, as it looks like we're adding more functionality to it. |
@beeradb Yeah, I'm not super concerned about hiding it. Similar to import-files, even if 99% of users never use it, it is there and our top level command list isn't so large to be unwieldy (yet). So I would say leaving it visible for now is fine. |
Feature request:
Please add some automatic cleanup to remove unused hostnames from
/etc/hosts
.When you use a lot of projects or test a lot, the
/etc/hosts
gets cluttered with all the hostnames.It would be great if
ddev remove --remove-data
would also remove the hostname from/etc/hosts
.Or maybe you want to introduce another flag that triggers the removal of unused hostnames.
The text was updated successfully, but these errors were encountered: