Question

i have been trying to change my openshift cloud app name from

appname-domain.rhcloud.com to appname-domain.rhcloud.com/myapp/

as mentioned in this link i have deployment my own custom war file in openshift jboss server.

but how to change my cloud url to this appname-domain.rhcloud.com/myapp/, where initially i deployed ROOT.War file, which now i want to deploy my war file as myapp.war file.

Was it helpful?

Solution

To deploy a WAR file you have to put the WAR file inside deployments directory of your OpenShift application. Rename the ROOT.war to myapp.war and copy it to deployments directory. Then run the following commands.

git add .
git commit -am "added myapp.war"
git push
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top