Adobe | Magento Cloud

How to Apply Patches in Adobe Magento Commerce Cloud

How to Apply Patches in Adobe Magento Commerce Cloud

Welcome to the Adobe | Magento 2 Commerce Cloud Tutorial. In this first cloud tutorial, Today I will explain to you how to apply patches in Adobe Magento Commerce Cloud. Magento Cloud is a hosting platform built on AWS to host Commerce projects. This system represents the most qualified hosting platform as Magento manages the code and the environment.

As we all know that, we can’t able to direct apply changes into cloud project. However, If you want to apply patch to override or solve some core issue then you need to follow this below process :

You may like this :

Steps to Apply patches in Adobe Magento Commerce Cloud :

To apply patches in your local environment :

1) To apply individual patches in a local environment, Add the QUALITY_PATCHES variable to the .magento.env.yaml file and list the required patches inside that :

stage:
  build:
    QUALITY_PATCHES:
      - MDVA-34879
      - MDVA-34189

Here, on above code you can see that MDVA-34879 & MDVA-34189 these both patches I added inside .magento.env.yaml file. If you open that file, you can see structure of like this. After that to add that patch variable you need to add that inside QUALITY_PATCHES variable.

2) From the project root, to apply the patches execute this below command :

php ./vendor/bin/ece-patches apply

3) After that just clean cache :

php bin/magento cache:clean

Then, if you want to check that your patch is applied or not you can check this by below command :

php ./vendor/bin/ece-patches status

To apply patches in the cloud environment :

1) To apply individual patches in a local environment, Add the QUALITY_PATCHES variable to the .magento.env.yaml file and list the required patches inside that :

stage:
  build:
    QUALITY_PATCHES:
      - MDVA-34879
      - MDVA-34189

2) After that, to apply in your cloud environment you need to add that file via git to add, commit & push that file. Execute this below command for that :

git add .magento.env.yaml
git commit -m "Apply 34879 & 34189 patches"
git push origin <branch-name>

That’s it !!!

I hope this blog is easy to understand about how to apply patches in Adobe Magento Commerce Cloud. In case, I missed anything or need to add some information, always feel free to leave a comment in this blog, I’ll get back with proper solution.

Keep liking and sharing !!

 

Tagged ,