-
-
Notifications
You must be signed in to change notification settings - Fork 585
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
feat: allow multiple upload dirs, fixes #4190, fixes #4796, fixes #5047 #5005
Conversation
Download the artifacts for this pull request:
See Testing a PR |
a30ae5f
to
7d0a064
Compare
0cc4086
to
096edd2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the permutations I've tried now seem to work just fine, looking great, thanks!
We can ask the Craft CMS folks to test the prerelease, doesn't have to be done before this is merged. |
pull-push tests succeeded https://github.com/ddev/ddev/actions/runs/5426930505/jobs/9869609829 |
From @mattstein about how to test Craft CMS upload_dir:
|
1515cc0
to
7cf92c1
Compare
Investigated the failure and the reason was that some of the tests use an empty docroot which made the new |
This reverts commit 7cf92c1.
55b6d63
to
3e6a45a
Compare
Rebased to re-run tests and fixed linting error in drupal.go. Recommend using pre-push hook, https://github.com/ddev/ddev/tree/master/.githooks - maybe we don't have that in the docs? |
The Issue
upload_dir
should be able to be set to empty to prevent bind-mounting #4796ddev debug capabilities
#5047How This PR Solves The Issue
A new config property
upload_dirs
is introduced to hold more than one upload dir. Existing configupload_dir
is migrated to the new config and removed from the projects afterwards. For project types which do not predefine a default upload dir likephp
the warning about the missing upload dir can be disabled by settingupload_dirs: false
which is also mentioned in the warning message.Manual Testing Instructions
upload_dir
is migrated toupload_dirs
import-files
works correctly when importing in a upload dir using the--target
flagddev config
works properly, using--upload-dirs
and--uplod-dir
flagsAutomated Testing Overview
Related Issue Link(s)
ddev debug capabilities
#5047Release/Deployment Notes