-
-
Notifications
You must be signed in to change notification settings - Fork 582
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
"ddev list" should list sites based on container even if directory removed #374
Comments
Ran into this again today, think it's worth solving (and very low-hanging fruit) |
Not opposed. Just need to determine what the best course of action would be! |
This is not hard - we just have something that ignores the site if it can't find the directory. This is a tiny fix. |
@rfay cool! Would we instruct people on how to remove the docker containers if they are orphaned? Or would we provide instructions on how to reconnect? |
This was a tactical fail on my part. I should have tested and thought of a more thoughtful response to get to a clear "yes" before just talking off the cuff and making this more noisy than it had to be. I'll test before responding further and I'm sure it'll be the quick and easy fix you're suggesting! |
I've had time to review and here's my take:
|
After reviewing my PR and getting more familiar with this issue, @beeradb and I would like to propose that sites with missing directories get listed in their own section of the I've spent enough time on this that I can confidently say, distinctly separating active ddev sites from "ghosted" sites - those with missing directories - is the most informative/intuitive to the user. The proposed solution is simple: if
This is a straightforward way to get the user to actually This change is the latest commit to PR #444 however approval from @rickmanelius is still required. |
…ved: fix for #374 (#444) * Add site status for directory removed * In the case of a missing site directory, initalization can be done manually using . * Remove erraneous InitFromMissingDirectory function and add some context to our changes using comments. * Cast site to *LocalApp. * Handle potential errors while casting using . Use better name for variable storing the casted value. * Adjusted error message presented on failure to cast. * Present value of site instead of siteStruct. * Handle the case of a missing .ddev/config.yml file
This was fixed in #444. |
What happened (or feature request):
Since I've stumbled on this a number of times it's likely that users will also stumble. In tests, the site directory has been removed, but the containers remain (poor things).
ddev list
doesn't show them in this case though. It should probably show them and say "Ooops, dir removed"What you expected to happen:
I'd expect to see sites (with a warning about them being broken) if their dir had been removed without them being removed.
Version: Please include the output of
ddev version
and the project's .ddev/config.yaml.How to reproduce this:
Anything else do we need to know:
Related source links or issues:
The text was updated successfully, but these errors were encountered: