Run modes

Avatar

Avatar
Validate 10
Level 4
shivangim985778
Level 4

Likes

22 likes

Total Posts

153 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 4
shivangim985778
Level 4

Likes

22 likes

Total Posts

153 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
shivangim985778
Level 4

01-08-2018

What are the advantages of using run modes? and why we need to have run modes and why we use run modes?

Replies

Avatar

Avatar
Validate 1
Level 2
Rajeev_Kumar
Level 2

Likes

11 likes

Total Posts

48 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
Rajeev_Kumar
Level 2

Likes

11 likes

Total Posts

48 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
Rajeev_Kumar
Level 2

01-08-2018

Runmodes are helpful if you have different configuration for different environment. Suppose you have a DEV, UAT and PROD environment and you site has a database connection. It is obvious that you will have different database configuration for each environment. So, you commit the separate configuration for each environment in specific run modes. For example, for the dev environment, you commit the configuration in config.author.dev, config.publish.dev folder. In the same fashion, you commit the config for UAT and PROD environment so that AEM pick the configuration from the folder in which run mode aem is running.

Here are some links for better understanding

Apache Sling :: Sling Settings and Run Modes (org.apache.sling.settings)

Run Modes 

Avatar

Avatar
Validate 1
Level 3
codingStar
Level 3

Likes

10 likes

Total Posts

38 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 3
codingStar
Level 3

Likes

10 likes

Total Posts

38 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
codingStar
Level 3

02-08-2018

In your project you have OSGi services and you different environment (eg LOCAL/DEV/QA/STAGE/UAT/PROD) for AEM Author and Publish. Now suppose you want different configuration values for each environment then in that case you can create run mode like

  • config.local
  • config.DEV
  • config.QA
  • config.STAGE
  • config.UAT
  • config.PROD

and put xml file under these folder.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

02-08-2018

Great responses - thank you!

Avatar

Avatar
Validate 10
Level 4
shivangim985778
Level 4

Likes

22 likes

Total Posts

153 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 4
shivangim985778
Level 4

Likes

22 likes

Total Posts

153 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
shivangim985778
Level 4

17-08-2018

how many types of run modes are there? and how to implement it?

Avatar

Avatar
Validate 10
Level 4
shivangim985778
Level 4

Likes

22 likes

Total Posts

153 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 4
shivangim985778
Level 4

Likes

22 likes

Total Posts

153 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
shivangim985778
Level 4

17-08-2018

what are the difference in settings run modes for each environmenment dev,qa and prod?

Avatar

Avatar
Validate 25
MVP
Ratna_Kumar
MVP

Likes

159 likes

Total Posts

755 posts

Correct reply

134 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile

Avatar
Validate 25
MVP
Ratna_Kumar
MVP

Likes

159 likes

Total Posts

755 posts

Correct reply

134 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile
Ratna_Kumar
MVP

17-08-2018

Hi Shivani,

There are two types of run modes.

1. Primary Run mode

2. Secondary or Customized Run mode.

Primary Run mode:

Primary run modes used at the time of installation and are fixed for the entire lifetime of that installation. There are two primary run modes provided from adobe author and publish.

Here we cannot change primary run mode after installation, as crx-quickstart folder is created after first installation according to run mode.

Secondary Run mode:

Secondary or Customized run modes are applied on each startup and can be changed with a restart of AEM instance. These are custom run modes defined for specific environment like development (config.author.dev), Testing(config.author.qa) or production(config.author.prod) as said by Rajeev and codingStar.

How to Implement: See this article and you will known clearly.

http://www.aemcq5tutorials.com/tutorials/set-up-run-modes-in-aem/

Hope this helps!!

Thanks,

Ratna Kumar.

Avatar

Avatar
Validate 10
Level 4
shivangim985778
Level 4

Likes

22 likes

Total Posts

153 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 4
shivangim985778
Level 4

Likes

22 likes

Total Posts

153 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
shivangim985778
Level 4

17-08-2018

what is create run modes about in this above link is it third method or it is another method to set up run modes in secondary run modes?

Avatar

Avatar
Validate 10
Level 4
shivangim985778
Level 4

Likes

22 likes

Total Posts

153 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 4
shivangim985778
Level 4

Likes

22 likes

Total Posts

153 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
shivangim985778
Level 4

19-08-2018

How to create run modes for QA environment?

How to create run modes for Prod environment?