Today (2nd May 2018) Magento released Magento CE 2.2.4. Recently the Magento Devs have been pretty busy pushing out 2.2.x updates and Magento 2 is maturing nicely. I am still getting to grips with Magento 2 and don’t expect to release a live site for at least another year so it makes sense to develop with the latest version of Magento. My Magento 2.2.x development environment is built on Docker and installing new Magento 2 dev shops is a breeze:
- git clone https://github.com/gaiterjones/docker-magento2-2
- cd docker-magento2-2/magento
- edit .env
- docker-compose build
- docker-compose up -d
- http://magento2.dev.com
Upgrading Magento is always a scary experience – Magento 2 is even more terrifying so I recommend you get used to doing updates with your dev systems. If you are manually upgrading from a previous 2.x version, you can use composer within the docker container:
- Take a backup
- Enter maintenance mode
- edit compose.json
- change version
- flush redis
- redis-cli flushall in the redis containers
- composer update
- rm -rf var/cache/* var/page_cache/* var/generation/* var/di/*
- chmod +x bin/magento
- php bin/magento cache:flush
- php bin/magento setup:upgrade
- php bin/magento indexer:reindex
If the upgrade breaks any sample data reinstall with php -f bin/magento sampledata:deploy
I regularly update my Magento 2 docker containers with each version update check them out at https://github.com/gaiterjones/docker-magento2-2
Comments