我开发了一个Grails应用程序,并且已经多次部署到Heroku而没有问题。然而就在最近,我已经改变了解决方案,在我称之为“插件”的文件夹中使用插件。我有那么基本上下面的代码添加到BuildConfig以包括在应用这些插件:Grails应用程序未能部署到Heroku?
grails.plugin.location.'spring-security-ui'="plugins/grails-spring-security-ui"
现在,当我运行的Heroku我收到以下错误delpoy:
|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
如果你在本地运行'grails war',会发生什么? –