Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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.

View solution in original post

3 Replies

Avatar

Community Advisor

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

 

Avatar

Community Advisor

Hi @Jerin,

 

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

Avatar

Correct answer by
Employee Advisor

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.