Update Drupal commerce 2 website

Backup to Acquia dev desktop local site

Take a copy of htaccess to preserve customisation

-- On local site --

navigate to directory above public_html

run composer outdated or composer outdated 'drupal/*'

composer update --with-dependencies drupal/commerce drupal/commerce_price drupal/commerce_product drupal/commerce_order drupal/commerce_payment drupal/commerce_payment_example drupal/commerce_checkout drupal/commerce_tax drupal/commerce_cart drupal/commerce_log drupal/commerce_store drupal/commerce_promotion drupal/commerce_number_pattern

Composer nodev

If you have separate dev/staging and production servers, ensure you copy/commit both your composer.json and composer.lock files to production and always run composer install --no-dev on production, rather than update. (The --no-dev switch will stop any packages listed in 'require-dev' from being installed, typically modules for debugging and libraries for unit/behavioral testing.)

Install local composer and drush update

2. increase ram if needed
3. Locally, create a directory and download composer
4. Run locally php composer.phar require drush/drush:8.x
5. do the same on the remote server, in directory above public_html
upload the composer.json and composer.lock files from the local directory in the remote directory
5. Run remotely php composer.phar install
6. Run remotely ../vendor/drush/drush/drush status, cr, ups, up drupal
7. Run updates.php

Session problem Drupal 8.6.13

Composer and Drupal are still strange bedfellows

Tips for Managing Drupal 8 projects with Composer

Discover colorbox or flexslider library when installed with composer

Update to drupal commerce dev with composer

Install drush 9 with composer - for drupal installed by composer

Update core via Composer for drupal project

Composer Drupal project Commerce

Subscribe to RSS - composer