0

How do I upgrade Magento 2.4 using composer to e.g. Magento 2.4.1 or Magento 2.4.2 or Magento 2.4.3 for that matter?

We've been reading https://devdocs.magento.com/guides/v2.4/comp-mgr/cli/cli-upgrade.html

But every time we run into problems with missing modules and similar issues. Also the guide is a 'catch all situations guide' like moving from community ot enterprise and v.v. --

We just want to move from 2.4 to 2.4.1

Would this be the following, clear concise or can it be better?

bin/magento maintenance:enable
composer require magento/product-community-edition=2.3.3-p1 --no-update
composer update
rm -rf var/cache/* var/page_cache/* generated/code/*
bin/magento setup:upgrade
bin/magento maintenance:disable
service varnish restart #(optional, often can only be done by root)
0

Sequence to run for a minor update from Magento 2.4 using composer to e.g. Magento 2.4.1 or Magento 2.4.2 or Magento 2.4.3

bin/magento maintenance:enable
composer require magento/product-community-edition=2.3.3-p1 --no-update
composer update
rm -rf var/cache/* var/page_cache/* generated/code/*
bin/magento setup:upgrade
bin/magento maintenance:disable

(optional, often can only be done by root)

service php-fpm restart
service nginx restart
service varnish restart
| improve this answer | |
0

Follow the Below Commands,

composer require magento/product-community-edition=2.4.0

composer update

bin/magento s:up

bin/magento s:s:d -f

bin/magento c:f
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.