Expand my Community achievements bar.

SOLVED

Setting up publish to preview in local AEM

Avatar

Level 4

Would like to ask if there's a way to setup publish to preview site in local AEM instance.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

In the end, for testing purposes it's not different from a normal publish. Instead of configuring it behind the "publish" replication agent, you need to create a "preview" replication agent for it.

View solution in original post

6 Replies

Avatar

Community Advisor

Hi @LyonMartin 
Not sure if this is possible but in local you can work directly with publishers.



Arun Patidar

Avatar

Community Advisor

Hi @LyonMartin 

You cannot setup preview server on local. Instead you can setup a publish instance and use it for the same purpose.
Please refer this link to setup the publish instance locally: https://experienceleague.adobe.com/en/docs/experience-manager-learn/foundation/development/set-up-a-...

Thanks,

Asutosh

Avatar

Correct answer by
Employee Advisor

In the end, for testing purposes it's not different from a normal publish. Instead of configuring it behind the "publish" replication agent, you need to create a "preview" replication agent for it.

Avatar

Community Advisor

@LyonMartin Unfortunately, you can not do that locally. This is not even possible with RDEs in the AEM as cloud.

Avatar

Level 4

If that's the case, is there a process or event that I can listen so I can check if the publish action will be for preview or publish?

Avatar

Administrator

@LyonMartin Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni