aemc
aemc copied to clipboard
Parametrize AEM dirs
imagine that aem setup is done in /opt/aem
then it is needed to launch aem cli in dir /opt as AEM CLI is looking for config file at relative path aem/home/etc/aem.yml
maybe instead
AEM_ROOT_DIRenv var should be set to overrideaemrelative path or...AEM_HOME_DIRenv var should be set to overrideaem/homerelative path
It would be nice to have also a flag ie. --config-path that provides a path to aem.yml file
yep we need to add it; it should have a precedence over env var AEM_CONFIG_FILE
the problem here is that some flag default value like for aem instance await --done-threshold is picked up from config and they are still overridable by CLI ...so this is sth like an egg and chicken problem - what should be initialized earlier... CLI app or the config. that's why currently AEM_CONFIG_FILE env var is the only way to change the aem.yml file location. IMO I am not sure if it's worth it to redesign the way how it is implemented now as it just works fine
AEM_ROOT_DIR should be then used in SetDefault() methods in defaults.yml to propagate that value globally/correctly