OPI Blog
Learn from experts in their fields

Browsing Tags: Grails

Jan 6, 2015
Grails cdn-asset-pipeline Plugin for Improving Web Site Performance
We’re always looking to get our software to run faster. For web sites, part of that equation is to move static content to a content delivery network (CDN). A proper CDN is designed to serve ...
Case-insensitive criteria ordering on child properties
I recently ran into a couple of Grails 2.2.x bugs/changes that made a simple requirement a bit of a pain. Given a Grails Criteria, sort the returned entries by a child property, case-insensitive-ly. Sounds easy ...
Oct 29, 2014
Experiences with Publishing a Grails Plugin
I’ve really enjoyed working in the Grails ecosystem. There are a variety of reasons of which I won’t write in this post. I am going to focus on one and that is the plugin system. Plugins ...
Aug 25, 2014
GR8Conf US Recap: Why Your Company Should Adopt Groovy!
The 2014 edition of the GR8Conf US in Minneapolis was a huge success. The speakers and sessions were great and the new venues for the talks as well as the Monday night Object Partners happy ...
Add Javascript unit tests and run them with “grails test-app”
Client-side JavaScript code typically doesn’t get as much testing as back-end code, but with technologies like AngularJS becoming popular, more logic is making its way to the front-end, creating a higher need for tests. Fortunately ...
Grails API Functional Testing
You’ve written (or are about to write) an API in Grails. Which is quite easy, especially with all the REST API improvements in Grails 2.3. Now you want to ensure your API works correctly when ...
Pooling Web Service Connections in Grails
Apache Commons Pool is a great tool to easily configure an object pool on the JVM. Having a pool of created objects helps when you need to reuse connection objects that are expensive to create ...
May 22, 2014
Run Grails Commands on Heroku
I recently needed to run Grails database migrations on Heroku and used the following steps to run these. First,  the Grails wrapper is required which can be installed using the wrapper command. After running the ...
May 15, 2014
Automatically test your dirty Grails classes
Summary When refactoring code in bulk, I occasionally run into a scenario where it’s simpler to make the change all at once and run the tests afterwards than it is to test after every iteration ...
May 13, 2014
Grails R14 Error (Memory quota exceeded) on Heroku
I have frequently encountered the following Error R14 (Memory quota exceeded) in the logs while running Grails apps on Heroku on the 1x Dyno which only allows 512mb of RAM: 2014-05-08T04:46:48.294887+00:00 heroku: Process running mem=557M(108.9%) ...