加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-16 23:49:59 所属栏目:百科 来源:网络整理
导读:我尝试将我的Grails 2.1.1应用程序部署到Heroku. 我运行git push master heroku并运行一段时间(编译好,获取依赖项,ec),然后它给了我这条消息: |Building WAR file ...........................Error | Error executing script War: : Replace: source file
我尝试将我的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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读