-
-
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
"ddev config" doesn't look for an existing .ddev/config.yaml #1158
Comments
So to fix this: |
Yes, exactly. |
The bulk of this is fixed by replacing But that one-line fix seems to break the assumptions of the interactive config (specifically docroot and apptype detection). I think that's easily fixable by working relative to the detected app root. It'll also take some wording changes in the docroot prompt, as "current directory" will end up being misleading. |
👍 |
…ixes #1574 (#1576) * Revert "Look in parent directories for an existing .ddev/config.yaml, fixes #1158 (#1275)" This reverts commit 7c8310e. * Remove the behavior of ddev composer create --no-interaction that allows full deletion without confirmation * Add error check to make sure they don't run it in homedir * Warn user of ddev config if a parent directory has .ddev/config.yaml in it * Add tests to make sure subdir and homedir config behaves properly * Clean up ~/.ddev/config.yaml that might exist
Describe the bug
ddev config
does not do the check to see if it's already in a project. Instead it will always try to create a .ddev/config.yaml in the current directory. (The other commands all call utils.CheckForConf() at some point).ddev config
should call CheckForConf() and if not found, create the config in the current directory.To Reproduce
ddev config
Expected behavior
ddev config
should find the master directory to config if it's already configured.Additional context
I think this dates from the time that
ddev config
was assumed never to be run more than once.The text was updated successfully, but these errors were encountered: