Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM cloud | Run mode folders deployment not working

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

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

You should be checking config from developer console.

View solution in original post

8 Replies

Avatar

Level 6

I think you need to look at the Cloud Service project structure - https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/develo... 

 

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 

Avatar

Level 4

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

Avatar

Level 2

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.

Avatar

Community Advisor

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

 

Avatar

Correct answer by
Community Advisor

Hi,

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

You should be checking config from developer console.

Avatar

Level 2

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

 

Avatar

Community Advisor

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