Grails推送到Heroku失败 – applicationContext.xml不存在

我尝试将我的Grails 2.1.1应用程序部署到Heroku.

我运行git push master heroku并运行一段时间(编译好,获取依赖项,ec),然后它给了我这条消息:

|Building WAR file
   ...........................Error 
   |
   Error executing script War: : Replace: source file /app/.grails/2.1.1/projects/Project/stage/WEB-INF/applicationContext.xml doesn't exist (Use --stacktrace to see the full trace)
 !     Failed to build app
 !     Heroku push rejected,Failed to compile Grails app

当我在本地运行grails war时,它没有任何问题.

我做了一些阅读,但我没有找到一个可靠的答案.我读过的类似问题是由与JDK相关的问题或插件引起的.

这种情况下的解决方案是将WEB-INF添加到我的存储库中.认情况下,我的.gitignore(通过GitHub创建)忽略WEB-INF.

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念