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
BedrockMission!

Learn more

View all

Sign in to view all badges

How to have socialconfig for Communities runmode specific (kind of like the OSGI configurations)

uwej31223422
Level 2
Level 2

We have the storage configurations from Tools>Communities>Storage Configuration, which is stored under /etc/socialconfig/srpc/defaultconfiguration, in our code in order to be able to simply deploy it on an AEM instance without the need to configure it manually via the UI on every instance.

 

The challenge is now that we need different configurations for different environments like author, publish, DEV, QA, PROD ...
Is there a way to achieve that, just like it can be done with the OSGI configurations?

1 Reply
shelly-goel
Community Advisor
Community Advisor

@uwej31223422 

 

One possible solution could be to configure those values in environment variables, commit the file (/etc/socialconfig/srpc/defaultconfiguration) with environment variable names in it and update your build scripts to inject the variable values in that file at build time and package post that.
It would be similar to envInject in Jenkins: https://plugins.jenkins.io/envinject/

I hope this helps.