I want to replace the repoinit script in the AEM instance each and every time of the deployment. | Community
Skip to main content
jerinraj5555
Level 3
January 25, 2023
Solved

I want to replace the repoinit script in the AEM instance each and every time of the deployment.

  • January 25, 2023
  • 3 replies
  • 1729 views

I've created a repo-init script in my code base and I saw that it will be adding or modifying the changes in the instance while deployment but I removed some lines from the script and it's not reflected there. Is it possible to replace the entire repoinit script with new rules? Is there any filter mode( <filter mode="replace" />) option available?

 

Hopefully, someone can give me some suggestions. thanks

Thanks

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 joerghoh

When you have a custom repoinit script as part of your deployment, you should be able to update it and the updated version will be deployed and used. The old version should not stick around.

3 replies

Ankur_Khare
Community Advisor
Community Advisor
January 26, 2023

Hi,

Ideally repoinit scripts would be based on environments.

So where did you place your config.

Can you check the filter for that folder in filter.xml and share with us the details.

 

Regards

 

Ankur

 

Kishore_Kumar_
Level 9
January 26, 2023

Hi @2154535,

 

May i know which usecase with repo init is not getting replaced after each deployment.

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
January 27, 2023

When you have a custom repoinit script as part of your deployment, you should be able to update it and the updated version will be deployed and used. The old version should not stick around.