Install Redhat command line tools. I followed the standard docs to do this for my mac. Grails will not run on a small gear. You need to request an upgraded account for this to work. I created a openshift-grails-quickstart that can be used. This work was based on the openshift-tomcat-quickstart on github for the tomcat portion.
The grails work consists basically of the following:
- Copy the tomcat distribution in diy/tomcat directory.
- Copy the Grails distribution in the diy/grails directory.
- Modify the deploy, start, stop commands for grails.
- Fix the “grails war” command to use a HOME directory and ivy-cache to which the openshift user can write.
There is a slight problem that I’ve yet to resolve. When I run grails run-app locally, it adds “plugins.tomcat=2.1.1″ to the application.properties file. This allows it to run locally. But if this gets pushed to the openshift git repo, then it fails with:
remote: :::::::::::::::::::::::::::::::::::::::::::::: remote: :: UNRESOLVED DEPENDENCIES :: remote: :::::::::::::::::::::::::::::::::::::::::::::: remote: :: org.grails.plugins#tomcat;2.1.1: not found remote: ::::::::::::::::::::::::::::::::::::::::::::::