composerizing drupal https://notes.masterweb.sk/index.php/ sk Composerize Drupal https://notes.masterweb.sk/index.php/composer-drush/composerize-drupal <span class="field field--name-title field--type-string field--label-hidden">Composerize Drupal</span> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/index.php/user/1" typeof="schema:Person" property="schema:name" datatype="">ROOT</span></span> <span class="field field--name-created field--type-created field--label-hidden">Št, 03/21/2019 - 19:03</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>- update core and modules manually</p> <p>- backup db &amp; files</p> <p>- create subdomain + copy there database</p> <p>- on subdomain create new composer-drupal8 project</p> <p>- 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/</p> <p>- install drush</p> <p>- copy missing modules from source, copy settings.php, copy sites/default/files, copy libraries (in webroot)</p> <p>- change db_connect in settings.php</p> <p>- try site - probably error -&gt; run:</p> <p>- drush updb, drush cr, drush cron</p> <p>- try site again - should working</p> <p> </p> <p>history (except copy/move in mc):<br />    70  composer create-project drupal-composer/drupal-project:8.x-dev project_dir --stability dev --no-interaction<br /> cd project_dir (next commands must ran into that directory)<br />    71  composer outdated<br />    72  composer require 'drupal/admin_toolbar:^1.26'<br />    73  composer require 'drupal/backup_migrate:^4.0'<br />    74  composer require 'drupal/coffee:^1.0'<br />    75  composer require 'drupal/google_analytics:^2.4'<br />    76  composer require 'drupal/gtranslate:^1.13'<br />    82  composer require 'drupal/metatag:^1.8'<br />    83  composer require 'drupal/yoast_seo:^1.5'<br />    84  composer require 'drupal/twig_field_value:^1.2'<br />    85  composer require 'drupal/twig_tweak:^2.1'<br />    86  composer require 'drupal/webform:^5.1'<br />    87  composer require 'drupal/weight:^3.1'<br />    88  composer require drush/drush<br />    92  drush<br /> now change webroot to public_html/web &amp; move files there<br /> ! move files and settings.php to new web<br />    93  drush updb<br />    94  drush cr<br />    95  drush cron<br />    96  composer outdated drupal/*</p> <p> </p> <p> </p> </div><div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Značky</h3> <ul class="links field__items"> <li><a href="/index.php/taxonomy/term/18" hreflang="sk">composerizing drupal</a></li> </ul> </div> Thu, 21 Mar 2019 18:03:24 +0000ROOT16 at https://notes.masterweb.skhttps://notes.masterweb.sk/index.php/composer-drush/composerize-drupal#comments