Changing custom runmodes when cloning environments | Community
Skip to main content
New Participant
September 1, 2017
Solved

Changing custom runmodes when cloning environments

  • September 1, 2017
  • 3 replies
  • 1206 views

Should it be possible to copy and AEM 6.1 publish instance between UAT and dev environments and have that instance pick up the target environment's config ?

I have copied a publish instance back from UAT to a dev server.

I then deleted the sling.id.file and reset  the clusterid, using the oak-run tool, and have changed the custom runmode from UT  to dev and finally started up the instance.

Whilst the instance has seemingly started up ok, It appears to be still picking up some UT configuration rather than  dev.

The configuration is stored in a single package, containing all environments, so my repository contains config:

/etc/map.publish.dev

/etc/map.publish.st

/etc/map.publish.ut

/etc/map.publish.prod

Should it be possible to restart a cloned publish instance using a custom runmode other than the one it was originally built with? If so, is there something I have missed?

Many thanks in advance.

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 smacdonald2008

See this Support KB that informs you on how to change AEM Run Modes: Set run modes

This shows you best practice on how to change this value.

3 replies

webbCBSAuthor
New Participant
September 1, 2017

Hi.

Thanks both for your quick responses.

I think however that I have answered my own question.

In the system console config manager  -->  Apache Sling Resource Resolver factory

The property "resource.resolver.map.location" was still set to /etc/map.publish.ut.

Whether this value should automatically update, when the server is restarted with a new custom runmode, I do not know.  However I have changed the value of this property to /etc/map.publish.dev  and my application seems to now be working as expected.

VeenaVikraman
New Participant
September 1, 2017
smacdonald2008
smacdonald2008Accepted solution
New Participant
September 1, 2017

See this Support KB that informs you on how to change AEM Run Modes: Set run modes

This shows you best practice on how to change this value.