Composerize Drupal

- update core and modules manually

- backup db & files

- create subdomain + copy there database

- on subdomain create new composer-drupal8 project

- install there all modules with exactly versions as on source web (via composer) (if some cant be installed copy them from source to modules/contrib/

- install drush

- copy missing modules from source, copy settings.php, copy sites/default/files, copy libraries (in webroot)

- change db_connect in settings.php

- try site - probably error -> run:

- drush updb, drush cr, drush cron

- try site again - should working

 

history (except copy/move in mc):
   70  composer create-project drupal-composer/drupal-project:8.x-dev project_dir --stability dev --no-interaction
cd project_dir (next commands must ran into that directory)
   71  composer outdated
   72  composer require 'drupal/admin_toolbar:^1.26'
   73  composer require 'drupal/backup_migrate:^4.0'
   74  composer require 'drupal/coffee:^1.0'
   75  composer require 'drupal/google_analytics:^2.4'
   76  composer require 'drupal/gtranslate:^1.13'
   82  composer require 'drupal/metatag:^1.8'
   83  composer require 'drupal/yoast_seo:^1.5'
   84  composer require 'drupal/twig_field_value:^1.2'
   85  composer require 'drupal/twig_tweak:^2.1'
   86  composer require 'drupal/webform:^5.1'
   87  composer require 'drupal/weight:^3.1'
   88  composer require drush/drush
   92  drush
now change webroot to public_html/web & move files there
! move files and settings.php to new web
   93  drush updb
   94  drush cr
   95  drush cron
   96  composer outdated drupal/*