Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How to set environmental variables?

Avatar

Level 4

How to set environmental variables for development and production ?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor and Adobe Champion
Run modes allow you to configure your AEM instance for a specific purpose (dev, uat, prod, staging), follow this informative blog tutorials to expand your knowledge for how to configure and consume run modes for your AEM development practices:

View solution in original post

8 Replies

Avatar

Community Advisor

Using runnodes in AEM.

 

Do look at the documentation on runmodes

Avatar

Community Advisor

@mohamedn4455443 Can you be more little specific on the question ? What environment variable do you want to set ? Where ? 

Avatar

Level 4
such as webservice ip for development and production

Avatar

Employee

You can rely on Cloud Manager APIs (1) and set environment variables. This would need an integration via Adobe IO console so you can interact with Cloud manager to  do things.

 

(1) : https://www.adobe.io/apis/experiencecloud/cloud-manager/api-reference.html#/Variables/patchEnvironme...

Avatar

Correct answer by
Community Advisor and Adobe Champion
Run modes allow you to configure your AEM instance for a specific purpose (dev, uat, prod, staging), follow this informative blog tutorials to expand your knowledge for how to configure and consume run modes for your AEM development practices:

Avatar

Level 4

.

Avatar

Level 4
this command doesn't work with me " java -jar jar-name -r dev,sameplecontent"

Avatar

Level 2
Why do you need "environment variables" from the OS?