Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

How to publish/replicate Author's Configuration settings to publish instance?

Avatar

Level 4

Hello all

I'm curious whether there is an easy way to publish settings from the configuration (/system/console/configMgr) to the publish instance. Right now, I manually go into the setting I want to change and do it for author and then do it for publisher.

1 Accepted Solution

Avatar

Correct answer by
Level 8

In your code package, you should have your configurations broken out into

/apps/project/config
/apps/project/config.author
/apps/project/config.publish

at a minimum, when needed.  Obviously if there is a cross-instance configuration, then place it inside of "config" as it will take affect on both author and publish.  For configurations specific to the author instance, place them in "config.author" and for the publish instance "config.publish".

View solution in original post

4 Replies

Avatar

Correct answer by
Level 8

In your code package, you should have your configurations broken out into

/apps/project/config
/apps/project/config.author
/apps/project/config.publish

at a minimum, when needed.  Obviously if there is a cross-instance configuration, then place it inside of "config" as it will take affect on both author and publish.  For configurations specific to the author instance, place them in "config.author" and for the publish instance "config.publish".

Avatar

Level 10

@leeasling has rightly mentioned you can create the config folder based on the run modes. Refer [1] to see how it can be done

[1] http://adobeaemclub.com/osgi-configuration-management-aem/

Avatar

Level 7

Hi squid267,

 

The above answer should solve your question. Please mark this as solved once you are done.

 

Thanks

Tuhin

Avatar

Level 4

Thanks everyone for the help! That was it.