hchoroomi / torquebox-quickstart

OpenShift Quickstart for Torquebox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TorqueBox on OpenShift

Here is a quick way to try out your Ruby application running in TorqueBox on OpenShift.

By default, this quickstart will install the latest incremental version of TorqueBox. You can specify a different version by tweaking .openshift/action_hooks/pre_start_jbossas-7, but any build older than incremental 1294 won't work. ;-)

Running on OpenShift

Create an account at http://openshift.redhat.com/

Create a jbossas-7 application

rhc app create -a yourapp -t jbossas-7

Remove the sample app provided by the jbossas-7 cartridge

cd yourapp
rm -rf pom.xml src

Add this upstream repo

git remote add upstream -m master git://github.com/openshift-quickstart/torquebox-quickstart.git
git pull -s recursive -X theirs upstream master

Then add, commit, and push your changes

git add -A .
git commit -m "My Changes"
git push

That's it! The first build will take a minute or two, even after the push completes, so be patient. You should ssh to your app and run tail_all so you'll have something to watch while your app deploys.

When you see Deployed "your-knob.yml in the log, point a browser at the following link (adjusted for your namespace) and you should see a friendly welcome:

http://yourapp-$namespace.rhcloud.com

Drop in to the #torquebox IRC channel on freenode.net if you have any questions.

About

OpenShift Quickstart for Torquebox