Partially fixes #47 by adding a composer web-root script which changes the web root.
This only rewrites composer.json in all the necessary places. It doesn't actually move any installed files, because that would either blow away files that aren't managed by Composer (site files, settings, possibly custom code), or break Drupal outright.
Because of that, this script is basically useless once the project has been set up (i.e., once dependencies are installed). So if you want to have a web root besides web, you either need to call composer create-project --no-install or run ddev web-rootbefore doing ddev quick-start.
Partially fixes #47 by adding a
composer web-root
script which changes the web root.This only rewrites
composer.json
in all the necessary places. It doesn't actually move any installed files, because that would either blow away files that aren't managed by Composer (site files, settings, possibly custom code), or break Drupal outright.Because of that, this script is basically useless once the project has been set up (i.e., once dependencies are installed). So if you want to have a web root besides
web
, you either need to callcomposer create-project --no-install
or runddev web-root
before doingddev quick-start
.