Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Clarification on nosamplecontent rundmode always

Avatar

Level 3

Just seeking clarification on the nosamplecontent runmode.  Is this is one-time runmode used for the initial installation only?  Or, in order to maintain the "production ready" status, should it be used on every start of AEM for the lifetime of the instance?  If it varies by AEM version it would be helpful to know .  In this particular case I am asking for AEM 6.4.8.  Hopefully a simple question with a simple answer. 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

The effects of a specific runmode are not really good covered in the AEM documentation. Anyway, it's always advisable to define all product-related runmodes (author, publish, crx3tar, ..., samplecontent, nosamplecontent) before the first startup and then let them configured.

With your own runmodes the situation is of course different, because you hopefully know the impact of them regarding your application.

 

(In case of the nosamplecontent runmode: as already said it has an effect only during the initial installation, afterwards it shouldn't have one. If you are interested in the details, start to unpack the quickstart jar ...)

View solution in original post

8 Replies

Avatar

Employee

Ignore this comment. can't seem to delete it

Avatar

Level 3
Thanks for the responses. Aside from the sample content that is not installed, let's suppose an administrator has bypassed or otherwise disabled some of the "Production Ready" settings post installation. Will using -nosamplecontent replace or recover those?

Avatar

Employee

Hey Clint,

No nosamplecontent runmode will not replace anything. samplecontent and nosamplecontent runmode only work during the initial installation of AEM.

In case any modification was done to "Production Ready" settings, then you should manually change it back.

Regards,

Vishu

 

Avatar

Level 3
It might be helpful for others if the documentation clarified when a runmode is more of a install option verses an always used option. The documentation on this page is unclear and seems to imply that it is used always and not just once at install. https://docs.adobe.com/content/help/en/experience-manager-64/administering/security/production-ready... . "In order to run AEM in production ready mode all you need to do is add the nosamplecontent via the -r runmode switch to your existing startup arguments"

Avatar

Employee

Clint, that's a great point. Please feel free to log a documentation bug by clicking on "Log an issue" option on the top right corner of the page.

You can find the details of different run modes here: https://helpx.adobe.com/experience-manager/6-3/sites/deploying/using/configure-runmodes.html

Please check the Caution note.

 

Avatar

Community Advisor

 

With AEM 6.1, Adobe introduces the new "nosamplecontent" runmode aimed at automating the steps required to prepare an AEM instance for deployment in a production environment.

The new runmode will not only automatically configure the instance to adhere to the security best practices described in the security checklist, but will also remove all the sample geometrixx applications and configurations in the process.

 

 

https://helpx.adobe.com/uk/experience-manager/6-3/sites/administering/using/production-ready.html

When you start AEM without the "nosamplecontent" run mode, your AEM instance will include project example, unwanted non-production ready configurations, etc... The non-production build of AEM can help developers understand how AEM sites, content fragments, experience fragments, etc... are configured, or how scripts are implemented, so it can provide some solutions as inspiration.

When you first initialise AEM with the "nosamplecontent" on startup, this will pre-set your AEM instance with the production-ready resources & environment configurations. After the initiate startup, when you stop AEM and remove "nosamplecontent" run mode, this will not have any effect of the resources that were initialised in the first startup of AEM; the resources & configs from the first startup will still exist.

For AEM author or publish production environments, its recommended to startup AEM, on the first-time of the startup, to use the "nosamplecontent" run mode, as Adobe has set up rules to assist us in setting up a production-ready environment. 

Avatar

Correct answer by
Employee Advisor

The effects of a specific runmode are not really good covered in the AEM documentation. Anyway, it's always advisable to define all product-related runmodes (author, publish, crx3tar, ..., samplecontent, nosamplecontent) before the first startup and then let them configured.

With your own runmodes the situation is of course different, because you hopefully know the impact of them regarding your application.

 

(In case of the nosamplecontent runmode: as already said it has an effect only during the initial installation, afterwards it shouldn't have one. If you are interested in the details, start to unpack the quickstart jar ...)