Question

I am trying to deploy a war file in a WildFly gear through a SFTP client.

I have followed the directions described here: https://www.openshift.com/kb/kb-e1088-how-to-deploy-pre-compiled-java-applications-war-and-ear-files-onto-your-openshift-gear but can't find anything about WildFly.

More specifically I was hoping to find app-root/dependencies/wildfly/deployments but as fas as I can tell there is no such directory.

Is there something I am missing or should I only use the git way for wildfly war deployement?

Thank you in advance

Was it helpful?

Solution

If you just want to easily deploy a war file, I would suggest using rhc port-forward (as shown here in the README https://github.com/openshift-cartridges/openshift-wildfly-cartridge/blob/master/README.md) and use the web interface to deploy it. I wrote that article and it does need to have WildFly added, I'll try to get it updated this week. From what I can see right off, you should put your war file into ~/wildfly/standalone/deployments to deploy it via SFTP. If you run this command find . -name "*deployed" when you ssh into your gear, you will see the ROOT.war.deployed in that directory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top