尝试在 heroku 上运行 play 2.0.2 应用程序,但似乎尚不支持。
有没有人有这方面的运气?
错误:
http://s3pository.heroku.com/maven-scala-tools-snapshots/org/scala-tools/sbt/sbt_2.9.1/0.11.3/sbt_2.9.1-0.11.3.pom
-- artifact org.scala-tools.sbt#sbt_2.9.1;0.11.3!sbt_2.9.1.jar:
http://s3pository.heroku.com/maven-scala-tools-snapshots/org/scala-tools/sbt/sbt_2.9.1/0.11.3/sbt_2.9.1-0.11.3.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-tools.sbt#sbt_2.9.1;0.11.3: not found
::::::::::::::::::::::::::::::::::::::::::::::
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-tools.sbt#sbt_2.9.1;0.11.3: not found
Error during sbt execution: Error retrieving required libraries
(see /tmp/build_7sg3kay36u6a/project/boot/update.log for complete log)
Error: Could not retrieve sbt 0.11.3
! Failed to build app with SBT 0.11.0
! Heroku push rejected, failed to compile Scala app
最佳答案
这是因为旧缓存(我的应用程序之前已部署在 heroku 上,因此是旧缓存)
从您的 Play 应用程序的根目录,执行
heroku config:add BUILDPACK_URL='https://github.com/heroku/heroku-buildpack-scala#cleancache'
然后再次推送您的应用
这将删除所有缓存的工件和 sbt jar 并重新下载最新的。
请记住在之后执行 heroku config:remove BUILDPACK_URL 或者每次推送缓存时都会删除并且构建需要一段时间。
感谢 scott @ play googlegroups
https://groups.google.com/forum/#!topic/play-framework/yUDfW2UtBjs
关于heroku - 在 heroku 上部署 play20 应用程序 (v. 2.0.2),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11231960/