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.

有帮助吗?

解决方案

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
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top