Grails application running on Open-Shift

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:
  1. Copy the tomcat distribution in diy/tomcat directory.
  2. Copy the Grails distribution in the diy/grails directory.
  3. Modify the deploy, start, stop commands for grails.
  4. 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: ::::::::::::::::::::::::::::::::::::::::::::::

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>