https://www.drupal.org/docs/getting-started/installing-drupal/install-drupal-with-ddev-for-local-site-building-and-development does not suggest to set up a web docroot, so people setting up Drupal with that will not have a web docroot. Consequently I also have a ddev environment where I don't have that.
But ddev-xb-drupal-xb-dev can't even set itself up in this case. Running xb-setup clones Canvas into web/modules/contrib/canvas while I already had Canvas in modules/contrib/canvas and the web directory is now only used for Canvas. Then xb-setup fails at the end with /Users/gabor.hojtsy/Drupal/d12/.ddev/commands/host/xb-setup: line 89: web/sites/default/settings.ddev.php: No such file or directory, which of course there is not such a file.
I realize the instructions for this extension explain that you should set up a dev environment with the web docroot but the community instructions explain not to set a docroot, so you have an empty docroot site where you were working on your Drupal. By the time you arrive to contribute to Canvas, your site is already not compatible with this tool.
So you now need to setup your dedicated dev environment for this differently. I tried to convert my environment with
% ddev config --docroot=web
% ddev restart
% ddev launch
But this was a total no-go. Only ddev related files (from the sites directory) got placed, everything else stayed as-is, so the site does not work at all now :D
https://www.drupal.org/docs/getting-started/installing-drupal/install-drupal-with-ddev-for-local-site-building-and-development does not suggest to set up a web docroot, so people setting up Drupal with that will not have a web docroot. Consequently I also have a ddev environment where I don't have that.
But
ddev-xb-drupal-xb-devcan't even set itself up in this case. Runningxb-setupclones Canvas intoweb/modules/contrib/canvaswhile I already had Canvas inmodules/contrib/canvasand the web directory is now only used for Canvas. Thenxb-setupfails at the end with/Users/gabor.hojtsy/Drupal/d12/.ddev/commands/host/xb-setup: line 89: web/sites/default/settings.ddev.php: No such file or directory, which of course there is not such a file.I realize the instructions for this extension explain that you should set up a dev environment with the
webdocroot but the community instructions explain not to set a docroot, so you have an empty docroot site where you were working on your Drupal. By the time you arrive to contribute to Canvas, your site is already not compatible with this tool.So you now need to setup your dedicated dev environment for this differently. I tried to convert my environment with
But this was a total no-go. Only ddev related files (from the
sitesdirectory) got placed, everything else stayed as-is, so the site does not work at all now :D