Grails App无法部署到Heroku?

时间:2012-10-03 13:08:21

标签: grails plugins heroku

我开发了一个Grails应用程序,并且已经多次将它部署到Heroku而没有任何问题。但是最近我改变了解决方案,在我称之为“插件”的文件夹中使用插件。然后我基本上将以下代码添加到BuildConfig中,以便在应用程序中包含这些插件:

grails.plugin.location.'spring-security-ui'="plugins/grails-spring-security-ui"

现在当我运行delpoy到Heroku时,我收到以下错误:

|Generating plugin.xml for inline plugin
       Error |
       Error executing script War: java.lang.NullPointerException: Cannot get property 'file' on null object (Use --stacktrace to see the full trace)
 !     Failed to build app
 !     Heroku push rejected, failed to compile Grails app

我认为这是由于我通过新方法添加到解决方案中的新插件。任何人都可以告诉我,如果我遗失了什么或出了什么问题吗?

此外,我在本地进行了测试,运行正常:-S

由于

编辑1 ......

我试图在本地构建WAR文件,我得到以下内容:

Building WAR file.....
| Error Exception occurred trigger event [CreateWarStart]: /home/admin/workspace/APP_NAME/grails-app/migrations does not exist. (Use --stacktrace to see the full trace)
| Done creating WAR target/APP_NAME-0.1.war

2 个答案:

答案 0 :(得分:1)

在本地尝试grails war,看看是否可以重现问题。

这可能与在{2.0}中修复的GRAILS-9006有关。

答案 1 :(得分:0)

通过尝试多种不同的东西,我发现Heroku在处理Grails中的本地插件时很垃圾。所以我转移到Jelastic并像梦一样奔跑: - )

感谢您的帮助!!

相关问题