Sunday 5 June 2016

Run Modes


Run modes allow you to tune your AEM instance for a specific purpose; for example author or publish, test, development, intranet or others.

Installation Run Modes

Installation (or fixed) run modes are used at installation time and then fixed for the entire lifetime of the instance, they cannot be changed.

Installation run modes are provided out-of-the-box:
  • author
  • publish
  • samplecontent
  • nosamplecontent
These are two pairs of mutually exclusive run modes; for example, you can:
  • define either author or publish, not both at the same time.
  • combine author with either samplecontent or nosamplecontent (but not both).

Customized Run Modes

You can also create your own, customized, run modes. These can be combined to cover scenarios such as:
  • author + development.
  • publish + test.
  • publish + test + golive.
  • publish + intranet.
There are two mechanisms for setting standard and environment specific run mode for your instance:

To set up standard run mode Use the naming convention:
  • cq-<run-mode>-<port-number>. For example, set a standard run mode by naming the jar file cq-author-4502 or cq-publish-4503.
To set up environment specific run mode there are two methods:
  • Open <cq-installation-dir>/crx-quickstart/launchpad/sling.properties.
  • Add the following properties (following example is for author, test, uk):
  • sling.jcrinstall.folder.name.regexp=.*/(install|config)? 
  • sling.run.modes=author,test,uk .
  • In above case config.author.test.uk will get picked up (Or whatever with maximum match).
Configuration values for the run modes are saved in the repository. You can store all configurations in one repository as the run mode is indicated by a suffix on the folder name; for example:
  • config, applicable for all run modes.
  • config.author, used in author run mode.
  • config.publish, used in publish run mode.
  • config.<standard-run-mode>.<environment-specific-mode>, used in the applicable run mode.

Starting CQ with a specific run mode

If you have defined configurations for multiple run modes then you need to define which is to be used upon startup. There are several methods for specifying which run mode to use; the order of resolution is:
  • sling.properties file.(Edit <cq-installation-dir>/crx-quickstart/conf/sling.properties)
  • -r option.(start the jar with java -jar cq-56-p4545.jar -r dev)
  • system properties (-D).(A system property in the start script can be used to specify the run mode. -Dsling.run.modes=publish,prod,us)
  • Filename detection (cq5-<run-mode>-p<port-number>).
To check the runmode:

http://adobeaem-learneasycodeeasy.blogspot.in/search/label/runmode.

1 comment:

  1. I am a GameArt Specialist! - The King of Dealer
    › gameart › gameart Sep 29, 2020 — Sep 29, 2020 I have developed over 카지노 1000 professional graphic designers, game development teams and video gurus. I am a Game Arts Developer/Marketing Specialist from  I am a Game Art Specialist? What is kirill-kondrashin the best thing about Game Art?

    ReplyDelete