Grails资源插件和cloudfoundry

Ima*_*man 4 grails grails-plugin cloud-foundry

我尝试将我的应用程序部署到cloudfoundry,一切顺利,但是我找不到使用资源插件的静态资源.

在日志中我收到很多错误,如下所示

2012-01-31 13:36:41,352 [http-46220-3] WARN util.ResourceMetaStore - 找不到资源[/static/css/jquery-ui-1.8.17.custom.css]

我首先想到这是因为cloudfoundry没有分配任何磁盘空间但基于这个线程它应该开箱即用

http://grails.1312388.n4.nabble.com/Cloud-foundry-and-resources-plugin-with-js-css-td4243619.html

我正在运行的测试应用程序正在一个实例上运行,我正在使用资源插件的1.1.6版本.

还有其他人遇到过类似的问题吗?

小智 5

确保您没有错过Config.groovy中的以下行

grails.resources.adhoc.patterns = ['/images/*', '/css/*', '/js/*', '/plugins/*']
Run Code Online (Sandbox Code Playgroud)