Deployment 将play 2.0.x应用程序推送到Heroku发行版

Deployment 将play 2.0.x应用程序推送到Heroku发行版,deployment,heroku,playframework,playframework-2.0,Deployment,Heroku,Playframework,Playframework 2.0,我试图将一个本地工作的应用程序推送到Heroku,但我遇到了这个错误 [info] Compiling 20 Scala sources and 12 Java sources to /tmp/build_mhfyee4j841a/target/scala-2.9.1/classes... [error] /tmp/build_mhfyee4j841a/target/scala-2.9.1/src_managed/main/views/html/showitem.temp

我试图将一个本地工作的应用程序推送到Heroku,但我遇到了这个错误

     [info] Compiling 20 Scala sources and 12 Java sources to /tmp/build_mhfyee4j841a/target/scala-2.9.1/classes...
       [error] /tmp/build_mhfyee4j841a/target/scala-2.9.1/src_managed/main/views/html/showitem.template.scala:74: value showItem is not a member of controllers.ReverseApplication
       [error]              <a href=""""),_display_(Seq[Any](/*45.21*/routes/*45.27*/.Application.showItem(p.id, Items.slugify(p.title)))),format.raw/*45.78*/("""" ><img width="110" height="110"  alt=""""),_display_(Seq[Any](/*45.118*/p/*45.119*/.title)),format.raw/*45.125*/("""" src=""""),_display_(Seq[Any](/*45.133*/p/*45.134*/.picture)),format.raw/*45.142*/(""""></a>
       [error]                                                                                    ^
       [error] one error found
       [error] {file:/tmp/build_mhfyee4j841a/}quoiacheter/compile:compile: Compilation failed
       [error] Total time: 25 s, completed Dec 8, 2012 8:07:38 PM
 !     Failed to build app with sbt
 !     Heroku push rejected, failed to compile Play 2.0 - java app

发生这种情况的唯一原因是,如果您的
git
存储库不是最新的,并且git repo中不知何故调用的是
应用程序,而不是
项目
。请检查您是否确实在本地将更改提交到
git

当您运行
play clean
然后在本地运行
play stage
时会发生什么?
<p>
     @for(p <- Items.getRelated(item.categories.get(0).id) ) {
                <a href="@routes.Items.showItem(p.id, Items.slugify(p.title))" ><img width="110" height="110"  alt="@p.title" src="@p.picture"></a>
     } 
</p>
...
# ITEMS          
GET     /items/:id/:title           controllers.Items.showItem(id: Long,title: String)
...