Well I think your “option 1” is wrong. Why do you need to change anything in the content store? The only thing you need to edit is the instances.json of the new webapp instance (ports only, not names).
The only real fixed requirement is 1 content store instance per 1 webapp instance
All I think you need to do is:
- copy webapp folder and give it whatever name e.g. UBDemo
- copy content store TM1 instance and give it a new name, port and http port. Start it up.
- make sure in instances.json in UBDemo that the rest port for content store is what you sent in 2. then restart Tomcat
Then under the UBDemo URL you will have an exact replica of UX_Demo. In this case both UX_Demo and UBDemo will be pointing at the same TM1 sample database. But I think this is fine right? You said you wanted the data to be identical. Here you could diverge the UX_Demo and UBDemo front end applications but they would always be looking at the same model data.
Say you wanted the sample data to also be a copy and not the same, well you still don’t have to make any changes in the content store to do this! If this is what you want just also take a copy of the UX_Dev instance and also fire the copy up with a new name and ports. All you need to do is update the rest port in the instances.json for UBDemo. That’s all! No need to do any renaming of any instances.
Ping me on Teams if you’re not sure.