首先,我是 Play 新手。在我的第一步中,我使用类型安全激活器工具提供的“Play Java Seed”创建了一个 Play 项目。创建项目并将其导入 IntelliJ 后,我正尝试将其上传到 Heroku,如下所示:https://devcenter.heroku.com/articles/play-support .失败并显示以下日志消息:
remote: [info] downloading https://repo.typesafe.com/typesafe/releases/com/typesafe/play/run-support_2.11/2.3.8/run-support_2.11-2.3.8.jar ...
remote: [info] [SUCCESSFUL ] com.typesafe.play#run-support_2.11;2.3.8!run-support_2.11.jar (229ms)
remote: [warn] ::::::::::::::::::::::::::::::::::::::::::::::
remote: [warn] :: UNRESOLVED DEPENDENCIES ::
remote: [warn] ::::::::::::::::::::::::::::::::::::::::::::::
remote: [warn] :: com.typesafe.sbtrc#client-2-11;0.3.1: not found
remote: [warn] :: com.typesafe.sbtrc#actor-client-2-11;0.3.1: not found
remote: [warn] ::::::::::::::::::::::::::::::::::::::::::::::
remote: sbt.ResolveException: unresolved dependency: com.typesafe.sbtrc#client-2-11;0.3.1: not found
remote: unresolved dependency: com.typesafe.sbtrc#actor-client-2-11;0.3.1: not found
remote: at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:217)
remote: at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:126)
如果我在激活器 UI 中启动应用程序,一切都很好。我该如何解决这个问题,以便将项目上传到 Heroku?
最佳答案
是 Activator 添加的 sbt-fork-run-plugin。将文件添加到 .gitignore 后一切正常:
project/play-fork-run.sbt
关于heroku - 将 Play 应用上传到 Heroku 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29020455/