markshust / docker-magento

Mark Shust's Docker Configuration for Magento
https://m.academy/courses/set-up-magento-2-development-environment-docker/
MIT License
2.58k stars 1.01k forks source link

my current version is 2.4.6-p3 and how to update to 2.4.7-p2 #1208

Closed sivajik34 closed 3 months ago

sivajik34 commented 3 months ago

i have ran bin/update but it seems not working

YevhenZvieriev commented 3 months ago

Hi, @sivajik34

The script you are running bin/update is designed to update your Docker environment for Magento, not Magento itself. To update Magento from version 2.4.6-p3 to 2.4.7-p2, you'll need to follow a different process.

1. Backup your files and database before starting the update process.

2. Update the Composer dependencies to the latest Magento version:

bin/composer require magento/product-community-edition=2.4.7-p2 --no-update
bin/composer update

3. Run Magento's upgrade commands:

bin/magento setup:upgrade
bin/magento cache:flush
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f

Let me know if you need any further assistance :)

sivajik34 commented 3 months ago

Thank you so much