Skip to content

Web docroot requirement is nonstandard, different from official Drupal ddev setup instructions, requires new site setup #71

Description

@goba

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions