You add "sling.run.modes=publish/f in sling.properties and start the instance using the command "java -jar aem-6-p4502.jar -r author". In which mode will the instance start?
You add "sling.run.modes=publish/f in sling.properties and start the instance using the command "java -jar aem-6-p4502.jar -r author". In which mode will the instance start?
AEM instance will start in publish mode because the 'sling.run.modes' property specified in the sling.properties file takes precedence over the -r flag provided in the command line. Hence, 'sling.run.modes=publish' from the sling.properties file will be used to determine the run mode.
when "sling.run.modes" is present in the sling.properties file, -r is always ignored from the command line.