Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.63 KB

README.mediawiki

File metadata and controls

44 lines (33 loc) · 1.63 KB

Running CapeDwarf on OpenShift

Follow this instructions to run GAE applications on OpenShift PaaS.

  1. Register for OpenShift
  2. Follow the instructions to install client tools (step one)
  3. Create a domain (step two on the link above)
  4. Create JBoss AS applications
rhc app create -t jbossas-7 -a mygaeapp

  1. 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.
  1. 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.
  2. 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