Follow best practices for builds and deployment, and use the Upgrades and patches workflow to upgrade your application. Use the following guidelines to plan your upgrade and post-upgrade work:
Backup your project–Before upgrading the Adobe Commerce and any third-party or custom extensions, back up the database in Integration, Staging, and Production environments. See Back up the database.
Check for compatibility issues–
Ensure that any custom themes are compatible with the new Adobe Commerce version
After upgrading third party and custom extensions, use the
magento-cloud local:build command to validate Composer dependencies before deploying.
Review the Adobe Commerce release notes and extension documentation to ensure that you have implemented any workarounds or configuration changes required to address known functional issues and bugs related to the upgraded the Adobe Commerce version and extensions.
Ensure that the installed service versions are compatible with the new Adobe Commerce version, and upgrade services as needed. See Services.
Test your database to address any issues introduced by the updates to the Adobe Commerce version and extensions.
Make any required updates to environment-specific settings before deploying to the remote environment.
Check database connectivity and available storage in remote environments–
Use SSH to log in to the remote server and verify the connection to the MySQL database. See Connect to the database.
Verify available storage in the remote environment–Use the
disk free command to view and manage available disk space on your Cloud environments. See Manage disk space.
Check the size of the upgraded database and verify that the
services.yaml file has enough disk space allocated.
Free up disk space–Clear the cache, and clean the
/tmp directories before deploying.
Plan and perform a successful upgrade on local and Integration environments, before deploying to Staging–After upgrade, test your deployment and resolve any issues.
Merge code to Staging, and then to Production–Test and resolve any issues in the Staging environment before pushing changes to the Production environment.
Complete Post upgrade tasks–
Use SSH to log in to the remote server and verify the following:
Complete post-upgrade User Acceptance Testing UAT on Staging and Production environments and fix any issues related to third-party and custom extension upgrades.