How to apply a Isolated patch provided by Adobe
This article instructs how to apply a Isolated patch for Adobe Commerce on-premises, Adobe Commerce on Cloud infrastructure, and Magento Open Source.
WARNING
We strongly recommend applying and testing the patch on the Staging/Integration environment before applying it to Production. We also recommend you have a recent backup before any manipulations.
How to apply a Isolated patch for Adobe Commerce on Cloud infrastructure cloud
-
If you don’t have a directory named
m2-hotfixesin the project root, please create one. -
Copy the
%patch_name%.patchfile(s) to them2-hotfixesdirectory. -
Add, commit, and push your code changes:
code language-git git add -Acode language-git git commit -m "Apply %patch_name%.patch patch"code language-git git push origin
For additional information about applying patches to Cloud projects, see Apply patches.
How to apply a Isolated patch for Adobe Commerce on-premises and Magento Open Source commerce
-
Upload the patch to your Adobe Commerce on-premises or Magento Open Source root directory.
-
Run the following SSH command:
code language-bash patch -p1 < %patch_name%.patch(If the above command doesn’t work, try using
-p2instead of-p1) -
For the changes to be reflected, refresh the cache in the Admin under System > Cache Management.
recommendation-more-help
support-resources-help-adobe-support-tools-guide