gpt4 book ai didi

AEM 配置

转载 作者:行者123 更新时间:2023-12-02 09:12:08 29 4
gpt4 key购买 nike

配置根据运行模式应用于 AEM 实例。在多个运行模式和多个配置的情况下,AEM 如何确定要选择的配置文件?假设以下配置在 AEM 项目中可用,

/apps
/myproject
- config
- config.prod
- config.author
- config.active
- config.prod.active
- config.prod.author.active

哪个配置被选择或应用于使用运行模式 author、nosamplecontent、prod、active 创建的 AEM 实例?

是否有任何与配置创建相关的已定义规则(或最佳实践)记录在案,我可以在设置项目时引用

谢谢,

最佳答案

本文讨论了如何应用它们的细节:
https://helpx.adobe.com/experience-manager/6-4/sites/deploying/using/configuring-osgi.html?cq_ck=1368002864971#ConfigurationDetails

Resolution of multiple Run Modes

For run mode specific configurations, multiple run modes can be combined. For example, you can create configuration folders in the following style:

/apps/*/config../

Configurations in such folders will be applied if all run modes match a run mode defined at startup.

For example, if an instance was started with the run modes author,dev,emea, configuration nodes in /apps//config.emea, /apps//config.author.dev/ and /apps//config.author.emea.dev/ will be applied, while configuration nodes in /apps//config.author.asean/ and /config/author.dev.emea.noldap/ will not be applied.

If multiple configurations for the same PID are applicable, the configuration with the highest number of matching run modes is applied.

For example, if an instance was started with the run modes author,dev,emea, and both /apps//config.author/ and /apps//config.emea.author/ define a configuration for com.day.cq.wcm.core.impl.VersionManagerImpl, the configuration in/apps/*/config.emea.author/ will be applied.

This rule's granularity is at a PID level. You cannot define some properties for the same PID in/apps//config.author/ and more specific ones in /apps//config.emea.author/ for the same PID. The configuration with the highest number of matching run modes will be effective for the entier PID.



以下是一些最佳实践:
  • https://aemmastery.com/runmodes-best-practices-8daa8a2c6582
  • https://blog.kristianwright.com/2013/08/21/aem-best-practice-osgi-configurations/
  • 关于AEM 配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50931236/

    29 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com