cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the context root

pteki
Champ in-the-making
Champ in-the-making
we have couple tomcat nodes having activiti-app under a single URL.
we need to configure the deployment script to deploy the activiti-app with different context root name on each node. What is the best optio/way to do this.
tried the below,
changed in activiti-app.properties
and in the app-cfg.js file under webapps/activiti-app-lob1/scripts.
with these manual changes, it seem to be working.
who is generating this app-cfg.js?  and can the context-root configurable?
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
If you've done those changes, then you've done all there is needed to be done.

"who is generating this app-cfg.js"

Nobody, it's a file we have in our webapp.

pteki
Champ in-the-making
Champ in-the-making
Thank You.
Is there any way to make contextRoot configurable?

thought the app-cfg.js is getting getting generated for each build based on the activiti-app.properties file, as couldn't find in the -sources.jar.

jbarrez
Star Contributor
Star Contributor
"Is there any way to make contextRoot configurable?"

It is. Simply rename the war and update the files as described above.

"thought the app-cfg.js is getting getting generated for each build based on the activiti-app.properties file, as couldn't find in the -sources.jar."

app-cfg.js is part of the webapp. It won't be in any jar.