AEM cloud | Run mode folders deployment not working | Community
Skip to main content
Level 2
Jun 30, 2022 10:20 AM UTC
Solved

AEM cloud | Run mode folders deployment not working

Hi Folks,

 

I am keeping the run mode folders in ui.config in cloud maven project.

Everything is working fine in local.

When we deploy the application using adobe cloud manager deployment pipeline, I don't see osgiconfig folder and child run mode folders in content tree.

In filter.xml all run mode folders added properly. 

 

Some adobe forums is suggesting to keep rumode/osgiconfig folders in ui.apps that also I tried. It is not even  compiling the code if we keep the run  mode folders in ui.apps.

 

I would highly appreciate if anyone has come across similar issue and has fixed the same.

 

Thanks,

Pradeep

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Jul 1, 2022 7:40 AM UTC

Hi,

You will not see the config node from in crx or content tree on cloud.

You should be checking config from developer console.

Arun Patidar

8 replies

arunpatidar
arunpatidarAccepted solution
New Participant
Jul 1, 2022 7:40 AM UTC

Hi,

You will not see the config node from in crx or content tree on cloud.

You should be checking config from developer console.

Translate
Arun Patidar
Level 2
Jul 1, 2022 9:24 AM UTC

Hi Arun,

 

Very weird but it is true. 

Yes I can see the configuration in developer console. But I am no able to see the run modes in cloud instance. Usually we can see in status --> sling settings in OSGI console in regular AEM instance.

 

Where should I check the run mode in AEM cloud? Status json is not showing the run mode.

 

Thanks,

Pradeep

 

Translate
arunpatidar
New Participant
Jul 1, 2022 10:59 AM UTC

Run modes that are defined typically include the service (author and publish) and the environment (dev, stage, prod). This can be checked from Cloud Manager and based on instance type dev orr stage or prod.

Pattern
<service>.<environment_type>

Fr eg: author.dev or publish.prod

The supported runmode configurations in AEM as a cloud service are:

  • config ( The default, applies to all AEM Services )
  • config.author ( Applies to all AEM Author service )
  • config.author.dev ( Applies to AEM Dev Author service )
  • config.author.stage ( Applies to AEM Staging Author service )
  • config.author.prod ( Applies to AEM Production Author service )
  • config.publish ( Applies to AEM Publish service )
  • config.publish.dev ( Applies to AEM Dev Publish service )
  • config.publish.stage ( Applies to AEM Staging Publish service )
  • config.publish.prod ( Applies to AEM Production Publish service )
  • config.dev (*Applies to AEM Dev services)
  • config.stage (*Applies to AEM Staging services)
  • config.prod (*Applies to AEM Production services)


** OSGI configuration that has the most matching runmodes is used.

 

Please check this as well https://medium.com/adobetech/custom-runmodes-on-aem-as-a-cloud-service-79b757f51a6b 

Translate
Arun Patidar
SantoshSai
New Participant
Jun 30, 2022 8:57 PM UTC

Hi @pradeepdubey , 
If those are custom runmodes - 

"AEM 6.x supports custom runmodes, however AEM as a Cloud Service does not. AEM as a Cloud Service support an exact set of runmodes. Any variation in OSGi configurations between AEM as a Cloud Service environments must be handled using OSGi configuration environment variables."

Please visit these articles may help:

Hope that helps!

Regards,
Santosh

 

Translate
Santosh Sai
Mohit_KBansal
Employee
Jun 30, 2022 12:11 PM UTC
Level 2
Jun 30, 2022 12:47 PM UTC

Yes all configurations in the format of cfg.json

Still these are not working. Local everything looking good. No code change in local  and what we  have in cloud pipeline. 

I think cloud manager has different process and treats run mode differently. If anyone can  share some  insights will help.

Translate
manpreetk908
Level 4
Jun 30, 2022 11:44 AM UTC

I hope you are just not focusing on checking the run mode node in the content tree in the cloud env and you have confirmed that your run modes are not working as expected?

 

Regards,

Manpreet

Translate
Employee
Jun 30, 2022 11:20 AM UTC

I think you need to look at the Cloud Service project structure - https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/developing/aem-project-content-package-structure.html?lang=en 

 

Also, for best practice you can refer the arch type where we have sample code structure and you should refer that: 

https://github.com/adobe/aem-project-archetype 

Translate