-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Create a JBOSS 7 app:
See: https://www.openshift.com/developers/jboss e.g.
e.g.
rhc app create MyApp jbossas-7
Deploy
Deploying your WAR and EAR files using git
The directions for deploying WAR and EAR files using git are very similar to Tomcat, but you place them in a different directory in your git repository.
Create an application on OpenShift and select either the JBoss Application Server 7 or JBoss Enterprise Application Platform 6.1.0 cartridges.
Use the git clone command to download the source code for your application to your computer.
Remove the src directory and the pom.xml file from your application that you cloned to your computer.
Place any WAR files that you want to deploy on your gear inside of the deployments directory.
The WAR files that you add into the deployments directory will be deployed at a context that matches the name of the WAR file.
For Example:
If you add a file called mywebsite.war, it will be available at app-domain.rhcloud.com/mywebsite. If there is an application that you would like to be available at app-domain.rhcloud.com/ (also known as the root context) then you should name that file ROOT.war.
Next, you need to git add your new files, then do a git commit -am "some message here" to make sure that your changes are committed. Lastly, you need to do a git push to deploy your changes to your OpenShift gear. Now all of your pre compiled java applications should be deployed at their individual contexts.