Deploying multiple project in AEM cloud instance | Community
Skip to main content
Level 4
January 24, 2023
Solved

Deploying multiple project in AEM cloud instance

  • January 24, 2023
  • 6 replies
  • 4926 views

please help on below query - 

 

i have two projects needs to be deployed in AEM cloud instance  

 

but each time when i deploy either of the project , app folder is getting over written 

 

for example - when i deploy pipeline for demosite then /apps/demosite folder overwriting /apps/wknd folder

 

similarly when i deploy pipeline for wknd project then /apps/wknd folder overwriting /apps/demosite folder

 

i need both apps folder to be there both project are in different GIT repo also different adobe GIT repo

 

what can be the issue ? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Aditya_Chabuku

Hi @sonuk85184451 , you can follow the suggestions given below by Community Members and one or the other approach may best suit your requirements.

I'm adding up a link how we did the AEMaaCS setup for future references. https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/managing-code/working-with-multiple-source-git-repositories.html?lang=en 

 

Thanks,

Aditya Chabuku

6 replies

Anudeep_Garnepudi
Community Advisor
Community Advisor
January 24, 2023

@sonuk85184451 

Update the filters.xml (ui.apps/src/main/content/META-INF/vault/filter.xml) accordingly. 

AG
Level 4
January 24, 2023

can you provide an example please 

Anudeep_Garnepudi
Community Advisor
Community Advisor
January 24, 2023

Keep paths which you want to deploy in filter.xml

Check both filter.xml files from each repo.

Example: 

repo 1 filter.xml has /apps/demosite and /apps/wknd and if you to deploy only /apps/demosite from this repo then remove /apps/wknd from filters. Similarly in other repo as well.

AG
Himanshu_Singhal
Community Advisor
Community Advisor
January 24, 2023

Hi @sonuk85184451 

I'm hoping since you're having 2 projects, that most likely could be in 2 different repos. 
If so, the best possible approach is to deploy via GIT submodule. 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/managing-code/cloud-manager-repositories.html?lang=en

What happens is when you start deployment, cloud service build image step takes fresh image every single time and builds /apps so whatever it was previously is wiped off and takes latest code from project.

So, if you're going to deploy 2 projects separately then it's going to wipe the repo with existing ones and deploy the one which is present in current repo. 

With Git submodule approach - it binds multiple repos in single project and deploy both at same time hence both projects are going to be present during deployment. 


Pawan-Gupta
Level 8
January 24, 2023

Hello,

 

If you created separate projects in different GIT the deployment will override the previous one. to overcome this better create both projects as sub module suggested by others and make it under by creating a parent project. 

 

like project C has sub modules like A & B. hope this works.

Peter_Puzanovs
Community Advisor
Community Advisor
January 24, 2023

Hi Sonuk,

 

As per today's Cloud solution[Q1 2023], you need to marry all projects together for the deployment to cloud environment [1]

 

[1] https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/managing-code/cloud-manager-repositories.html?lang=en 

 

Regards,

Peter

 

Jagadeesh_Prakash
Community Advisor
Community Advisor
January 24, 2023

@sonuk85184451  I recommand you to create a project from AEM cloud architype repo and put your projects as a module in it. 

 

this is a multi tenant project and all the code will be deployed seperatly in a single instance.

 

Only confusion you will have is on the dispatcher, So you need to write a common dispatcher module seperatly. 

 

https://experienceleague.adobe.com/docs/experience-manager-learn/assets/deployment/multitenancy-concurrent-article-understand.html?lang=en#managing-deployment-scope

 

https://levelup.gitconnected.com/aem-multitenancy-running-multiple-websites-on-a-single-aem-environment-7eaf602c36d5

 

November 29, 2023

Hello

 

What if we have to deploy only repo1 and not touch repo2.

Can we still achieve this with submodule approach?

Aditya_Chabuku
Community Advisor
Aditya_ChabukuCommunity AdvisorAccepted solution
Community Advisor
January 24, 2023

Hi @sonuk85184451 , you can follow the suggestions given below by Community Members and one or the other approach may best suit your requirements.

I'm adding up a link how we did the AEMaaCS setup for future references. https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/managing-code/working-with-multiple-source-git-repositories.html?lang=en 

 

Thanks,

Aditya Chabuku

Thanks,Aditya Chabuku