I have created grails application and uploaded it in heroku.
If I use \'heroku scale web=1\' everything looks OK. But if I run \'heroku scale web=2\', some
https://github.com/grails-plugins/grails-resources/pull/11
According to the owner of the resources plugin, Marc Palmer, they're ignoring a check for old references to static resources.
So, this manifests itself as a load balancing issue that you would have on any system if you're not using sticky load balancing (which is the case with Heroku). Here's what's happening in the Heroku case:
From my research, the best practice is to declare your resources in a resources file.
See the following:
http://grails-plugins.github.com/grails-resources/guide/3.%20Declaring%20resources.html
This will tell the app server at boot time that a resource exists up front, avoiding the adhoc loading process.
For example, as in my previous email, a MyResources.groovy would look like:
modules = {
application {
resource url:'js/application.js'
resource url:'js/ui.geo_autocomplete.js'
}
}
So, you can use either of the two methods -- explicitly specify resources, or use adhoc loading (add the following to your Config.groovy: )
grails.resources.adhoc.includes = []
grails.resources.adhoc.excludes = ["*"]
It essentially disables adhoc resource processing.