I found this blog that explains how to install Grails on Max OS X.
Copy the downloaded folder to /usr/share/
$sudo chown -R root:wheel grails-1.1.1/
$sudo chmod 0755 grails-1.0.1/bin/*
$ln -s grails-1.1.1 grails
Add the path variable to /ect/profile like on Linux.
When deploying a new version of my application (actually I started an entire project from scratch) I continuously bounced my head against this “You don’t have the permission…” exception.
I finally added the following lines to my Configuration/config.groovy file:
where myproject is the part that appears in the url, like myproject.appspot.com.
Here are the directions for a patch in a great Screencast by Tomás Lin that makes authentication work in a Grails Application on Google’s App-Engine:
google.appengine.sessionEnabled = true // default true
google.appengine.enableSsl = true // default true
google.appengine.security.useHttps = ["/secure", "/shoppingcart/*", "/admin"]
google.appengine.security.requireAdmin = ["/admin", "/notsecuredadmin"]
google.appengine.security.requireLogin = ["/admin", "/", "/yabbadabbadoo"]
Don’t forget to apply the securePatch.diff patch to the plugin directory of your project – that is in <home>.grails/1.1.1/projects/myproject/plugins/app-engine-0.8.1 in order for these properties effectively written to the web.xml file.
A blog entry about running grails on Google’s App Engine. Among other things the methods that are provided by the App-Engine plugin are listed.
The added domain class MetaClass methods are:
withPersistenceManager (to execute code with access to the PersistenceManager)
jdoMakeDirty corresponding to the JDOHelper methods
Controllers have these attributes added to their MetaClass:
params (with Request attributes like in Grails)
When using the above script the compiler apparently cannot find the Key class for the Google Data Store. A workaround is to simply add the following jar directly to the Classpath: