phenaproxima / starshot-prototype

Prototype of a new kind of Drupal, based on recipes and loaded up with contrib's best modules and themes. Not a fork or a distribution.
https://drupal.org/starshot
104 stars 36 forks source link

Create a Composer script to change the document root #118

Open phenaproxima opened 1 week ago

phenaproxima commented 1 week ago

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-root before doing ddev quick-start.