How to update Drupal using composer.
** On Drupal 8
composer show drupal/core-recommended --check
composer outdated "drupal/*"
drush sql:dump > /root/drush-backups/name+date.sql
drush archive-dump > /root/drush-backups/name+date.sql
drush state:set system.maintenance_mode 1
drush cache:rebuild
composer update drupal/core-recommended --with-dependencies
drush cache:rebuild
drush state:set system.maintenance_mode 0
drush cache:rebuild
*** Optional -> composer update drupal/core --with-dependencies
*** Optional -> composer require 'drupal/core-recommended:^8.9' --update-with-all-dependencies
*** Optional -> composer require drupal/core-recommended:8.9.x-dev --update-with-all-dependencies
No comments:
Post a Comment