Change runmode of existing AEM instance | Adobe Higher Education
Skip to main content
Level 4
May 23, 2019
Resuelto

Change runmode of existing AEM instance

  • May 23, 2019
  • 3 respuestas
  • 6515 visualizaciones

My AEM instance which was running on 4502 port with this file name (cq-quickstart-author-p4502.jar). So, it had the "author" run mode which is expected. But, for testing, now I want to change the run mode to [publish, foo]. So, I am using the below command.

java -Xmx512m -jar cq-quickstart-p4502.jar -Dsling.run.modes=publish,foo

When I access http://localhost:4502/system/console/status-slingsettings​, I am seeing run mode as [author, foo], but not [publish, foo]. Can anybody please let me know how to fix this?

Mejor respuesta de user05162

Author or Publish run modes can only be set when you start the AEM instance for the first time and cannot be changed afterward.

You have to delete the crx-quickstart folder and restart the jar file after changing the runmode to "publish"

Check caution at [1]

Caution:

When using one of the above run modes (author, publish, samplecontent, nosamplecontent), the value used at installation time defines the run mode for the entire lifetime of that installation.

For these run modes you cannot change them after installation.

[1] Run Modes

3 respuestas

user05162Adobe EmployeeRespuesta
Adobe Employee
May 23, 2019

Author or Publish run modes can only be set when you start the AEM instance for the first time and cannot be changed afterward.

You have to delete the crx-quickstart folder and restart the jar file after changing the runmode to "publish"

Check caution at [1]

Caution:

When using one of the above run modes (author, publish, samplecontent, nosamplecontent), the value used at installation time defines the run mode for the entire lifetime of that installation.

For these run modes you cannot change them after installation.

[1] Run Modes

Dinu_Arya
Level 6
May 24, 2019

Go crx-quickstart/bin folder. Open start.bat file for windows and start(.sh) file for linux. change the run mode from author to publish then start AEM using command prompt.

Double click on start.bat file(Windows) or run ./start (linux)

Adobe Employee
August 26, 2021

You can only add customized run modes to existing instance by amending the start script. After the installation, an instance cannot be changed from author to publish, or vice versa.

https://helpx.adobe.com/tw/experience-manager/kb/RunModeSetUp.html 

March 6, 2025

It is possible to change the run mode , you don't need to delete crx-quickstart. 

Just add sling.run.modes=publish in the sling.properties file. This file is located under /crx-quickstart/conf/sling.properties