- Register for OpenShift
- Follow the instructions to install client tools (step one)
- Create a domain (step two on the link above)
- Create JBoss AS applications
rhc app create -t jbossas-7 -a mygaeapp
-
Use files from this repo to add CapeDwarf and dependent modules to JBoss AS.
Avoiding conflicts specify git options to prefer CapeDwarf repo content.
cd mygaeapp git remote add capedwarf-openshift https://github.com/capedwarf/openshift.git git pull --depth=1 -s recursive -X theirs capedwarf-openshift master
- Please be patient with pull, it takes a while, because it contains also an JBoss AS update.
-
Copy your GAE application to mygaeapp/deployments folder.
If you want to build your project using maven on OpenShift copy sources to src folder and remove skip_maven_build marker from mygaeapp/.openshift/markers/ folder. - Push CapeDwarf modules and your app to OpenShift using:
git add deployments/* git commit -m"Deploy sample app." git push origin
If you are redeploying your app, replace archive file in deployments dir (or src if building on OpenShift) and commit/push changes to OpenShift:
git commit -a -m"Added new feature xyz" git push origin
Open your application in web browser <your app name>-<your domain name>.rhcloud.com