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

mar*_*rko 6 grails heroku grails-2.0

我尝试将我的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
Run Code Online (Sandbox Code Playgroud)

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

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

mar*_*rko 10

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