Clarification on nosamplecontent rundmode always | Community
Skip to main content
ClintLundmark
Level 3
May 21, 2020
Solved

Clarification on nosamplecontent rundmode always

  • May 21, 2020
  • 4 replies
  • 9298 views

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. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

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 ...)

4 replies

Adobe Employee
May 21, 2020

Ignore this comment. can't seem to delete it

Adobe Employee
May 21, 2020

Hey,

Yes, it is for one time, to be used at the initial installation of AEM server, remains there forever, and cannot be changed.

More details: https://helpx.adobe.com/experience-manager/6-3/sites/deploying/using/configure-runmodes.htmlhttps://docs.adobe.com/content/help/en/experience-manager-64/administering/security/production-ready.html

 

Regards,

Vishu

 

ClintLundmark
Level 3
May 21, 2020
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?
BrianKasingli
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 21, 2020

 

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. 

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
May 22, 2020

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 ...)