Hi,
is there a way to change the file structure of this project? It seems everything is in the web root.

I feel the composer.json file should have this structure"
"drupal-scaffold": {
"locations": {
"web-root": "./web"
}
},

instead of
"drupal-scaffold": {
"locations": {
"web-root": "./"
}
},

Is there a way to adjust the files and maybe whatever is in the database?

Thanks,
Scott

Comments

Please install the theme on

Please install the theme on your localhost, this is the original one, using drupal/legacy-project template.

Next, please us the terminal and create a new one using drupal/recommended-project template using composer, see this tutorial: https://www.drupal.org/docs/develop/using-composer/starting-a-site-using...

Then edit composer.json file, copy all modules under require region from the original package composer.json file, something similar to this:

"require": {
        "composer/installers": "^2.0",
        "drupal/admin_toolbar": "^3.5",
        "drupal/block_class": "^3.0",
        "drupal/bootstrap_barrio": "^5.5@beta",
        "drupal/ckeditor_codemirror": "^3.1",
        "drupal/core-composer-scaffold": "^10.0",
        "drupal/core-project-message": "^10.0",
        "drupal/core-recommended": "^10.0",
        "drupal/core-vendor-hardening": "^10.0",
        "drupal/menu_link_attributes": "^1.4",
        "drupal/metatag": "^2.0",
        "drupal/pathauto": "^1.13",
        "drupal/photoswipe": "^5.0",
        "drupal/sitemap": "^2.0@RC",
        "drupal/slick": "^3.0",
        "drupal/slick_views": "^3.0",
        "drush/drush": "^13.0",
        "wikimedia/composer-merge-plugin": "^2.1"
    },

After that, run composer update to install all required modules

Next, copy /libraries, /themes/custom, /sites folder from the original site to your new /web site. Edit web/sites/default/settings.php and set the correct info of your database.

That's done.

Perfect. Thanks

Perfect.

Thanks