我有一个在Play和Scala中与Amazon DynamoDB交谈的示例应用程序,我试图将它部署到Heroku上。 Heroku只有部署Play应用程序或Scala应用程序的说明,但不能同时部署。我试图将两者的说明合并起来,但总之不足。我看到这个错误,在Heroku上部署Play Scala应用程序
[info] Compiling 1 Scala source to /tmp/build_1q6humfwtqitn/.sbt_home/.sbt/plugins/target/scala-2.9.1/sbt-0.11.2/classes...
[info] Loading project definition from /tmp/build_1q6humfwtqitn/project
[warn] module not found: com.typesafe.startscript#xsbt-start-script-plugin;0.3.0
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.startscript/xsbt-start-script-plugin/scala_2.9.1/sbt_0.11.2/0.3.0/ivys/ivy.xml
[warn] ==== local: tried
[warn] /tmp/build_1q6humfwtqitn/.sbt_home/.ivy2/local/com.typesafe.startscript/xsbt-start-script-plugin/scala_2.9.1/sbt_0.11.2/0.3.0/ivys/ivy.xml
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.startscript/xsbt-start-script-plugin/scala_2.9.1/sbt_0.11.2/0.3.0/ivys/ivy.xml
[warn] ==== heroku-sbt-typesafe: tried
[warn] ==== heroku-central: tried
[warn] http://s3pository.heroku.com/maven-central/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom
[warn] ==== heroku-scala-tools-releases: tried
[warn] http://s3pository.heroku.com/maven-scala-tools-releases/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom
[warn] ==== heroku-scala-tools-snapshots: tried
[warn] http://s3pository.heroku.com/maven-scala-tools-snapshots/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom
[warn] ==== heroku-sbt-typesafe: tried
[warn] ==== heroku-central: tried
[warn] http://s3pository.heroku.com/maven-central/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom
[warn] ==== heroku-scala-tools-releases: tried
[warn] http://s3pository.heroku.com/maven-scala-tools-releases/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom
[warn] ==== heroku-scala-tools-snapshots: tried
[warn] http://s3pository.heroku.com/maven-scala-tools-snapshots/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.startscript#xsbt-start-script-plugin;0.3.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.typesafe.startscript:xsbt-start-script-plugin:0.3.0 (sbtVersion=0.11.2, scalaVersion=2.9.1)
[warn]
[error] {file:/tmp/build_1q6humfwtqitn/project/}default-646eae/*:update: sbt.ResolveException: unresolved dependency: com.typesafe.startscript#xsbt-start-script-plugin;0.3.0: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? ! Failed to build app with SBT 0.11.0
! Heroku push rejected, failed to compile Scala app
而且,我是新来的Java,游戏和Scala,但很熟悉在Heroku上部署Rails应用程序。
我还没有尝试过,但我最近注意到了这一点。希望能帮助到你。 http://www.jamesward.com/2012/02/21/play-framework-2-with-scala-anorm-json-coffeescript-jquery-heroku – 2012-03-28 21:46:36
如果这是Play 2,请查看在Heroku上部署的说明:http://www.playframework.org/documentation/2.0/ProductionHeroku – 2012-03-29 13:26:31