So, I'm very proud to announce that you can now run Lift applications on Red Hat's OpenShift cloud. OpenShift is Red Hat's free, auto-scaling Platform as a Service (PaaS) for applications. As an application platform in the cloud, OpenShift manages the stack so you can focus on your code.
For Lift users this means that you can now deploy your Lift applications on OpenShift, and let it manage the stack for you which behind the scenes will run on top of Escalante.
Deploying your first Lift app on OpenShift
Give the application a name, for example
escalante, and click on
Once you've installed Git locally, clone the application following the instructions on OpenShift, i.e:
$ git clone \ ssh://[USER_ID]@escalante-[YOUR_DOMAIN].rhcloud.com/~/git/escalante.git/ $ cd escalante/
Get rid of the default sample application and commit it:
$ git rm -r pom.xml src $ git commit -m "Remove default app"
From the root of the local copy of the application, merge in the modules and server configuration needed to run Escalante on top of JBoss EAP. The merged files will be stored under the
$ git remote add escalante -m master \ git://github.com/escalante/escalante-openshift.git $ git pull -s recursive -X theirs escalante master
To help users get started with Escalante, we've developed some quickstarts out of which we'll be demostrating how Hello World Lift application runs on OpenShift. So, merge in the Escalante quickstarts:
$ git remote add quickstart -m master \ git://github.com/escalante/escalante-quickstart.git $ git pull -s recursive -X theirs quickstart master
You now have all you need to run the Hello World Lift Escalante quickstart on OpenShift. To run it, you need to push the changes in your local repository. By pushing the changes, OpenShift will build the application and deploy it, so might take a little while. Execute:
$ git push
Once the push finishes access the application via: http://escalante-[YOUR_DOMAIN].rhcloud.com/ and you should see something like this:
Deploying Lift applications to OpenShift this way is a bit arduous, which is why we're also working on producing an OpenShift cartdridge designed specifically for Lift applications that can run on top of Escalante, which would simplify the process significantly. Watch this space!