Hey I realize this is a noob question but I don't see this addressed in the documentation I've been using (drupal.org and the readme of this project).
I ran this on a local copy of an 8.8.19 site that was installed from a zip, into a public_html folder.
composer composerize-drupal --composer-root=. --drupal-root=./public_html
It finished and the last part of the feedback was:
74/74 [============================] 100% 32 package suggestions were added by new dependencies, usecomposer suggestto see details. Generating autoload files 26 packages you are using are looking for funding. Use thecomposer fund` command to find out more!
Scaffolding files for drupal/core:
- Copy [project-root]/.editorconfig from assets/scaffold/files/editorconfig
- Copy [project-root]/.gitattributes from assets/scaffold/files/gitattributes
- Copy [web-root]/.htaccess from assets/scaffold/files/htaccess
- Copy [web-root]/robots.txt from assets/scaffold/files/robots.txt
- Copy [web-root]/sites/example.settings.local.php from assets/scaffold/files/example.settings.local.php
- Copy [web-root]/sites/example.sites.php from assets/scaffold/files/example.sites.php
- Copy [web-root]/sites/default/default.settings.php from assets/scaffold/files/default.settings.php
Completed composerization of Drupal!`
I was kinda hoping this would have transitioned the site to the recommended file structure with the web folder. Instead I still have the public_html but also with (presumably) the old vendors folder within it (there is a vendor folder in the project root, above public_html).
When I got to this state before, I was not able to update drupal core using the instructions for upgrading a composer based site. Feels like Im missing a few steps after running composerize-drupal and before attempting to update the core - that or the composerize-drupal didnt execute properly or completely?
And after running composerize-drupal, I would have thought running composer install would basically have no effect but instead another rabbit hole starting with several of these prompts: $compiser install composer/installers contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins Do you trust "composer/installers" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?]
I believe I am either in a place where I'm missing some basic information, or I am in some weird edge case that isnt straightforward - or some combination of both. Any helpful suggestions appreciated.
Hey I realize this is a noob question but I don't see this addressed in the documentation I've been using (drupal.org and the readme of this project).
I ran this on a local copy of an 8.8.19 site that was installed from a zip, into a public_html folder.
composer composerize-drupal --composer-root=. --drupal-root=./public_htmlIt finished and the last part of the feedback was:
74/74 [============================] 100% 32 package suggestions were added by new dependencies, usecomposer suggestto see details. Generating autoload files 26 packages you are using are looking for funding. Use thecomposer fund` command to find out more!Scaffolding files for drupal/core:
Completed composerization of Drupal!`
I was kinda hoping this would have transitioned the site to the recommended file structure with the web folder. Instead I still have the public_html but also with (presumably) the old vendors folder within it (there is a vendor folder in the project root, above public_html).
When I got to this state before, I was not able to update drupal core using the instructions for upgrading a composer based site. Feels like Im missing a few steps after running composerize-drupal and before attempting to update the core - that or the composerize-drupal didnt execute properly or completely?
And after running composerize-drupal, I would have thought running composer install would basically have no effect but instead another rabbit hole starting with several of these prompts: $compiser install
composer/installers contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins Do you trust "composer/installers" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?]I believe I am either in a place where I'm missing some basic information, or I am in some weird edge case that isnt straightforward - or some combination of both. Any helpful suggestions appreciated.