Directory Structure with drupal-composer/drupal-project  

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
ptgraber's picture

The directory structure of the popular drupal-composer/drupal-project uses "/web" as the Drupal project root. Clarification could be helpful for beginner/intermediate developers.

What is the current best-practice placement of everything (files/folders, etc) in a Drupal project in relation to web document root -- in a sub-folder (like the drupal-composer/drupal-project appears to use) -- or in web document root proper.

Comments

The

sime's picture

The drupal-composer/drupal-project is conforming to best practice to my mind, I've not seen much that is different in the wild. There is a lot of /docroot instead because of limitations of Acquia hosting.