heroku - 将 Play 应用上传到 Heroku 时出错

标签 heroku playframework typesafe-activator

首先,我是 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/

相关文章:

python - 免费 Heroku 服务器 : Does Sleep Count as Active Time?

java - Play 框架 2.1 中的 Kerberos 身份验证

django - 如何将 Cache-Control header 添加到托管在 Heroku 上的静态文件中?

sql - 在Anorm中保存新对象时如何检索主键

java - 如何在 swagger.json 中传递 formData 进行 POST 请求?

mysql - Play Framework : How to correct SQL syntax error in evolution script?

java - Controller 在进行 spring/hibernate 调用时会阻塞吗?

java - Heroku 上的 Typesafe Activator 错误绑定(bind)到 PORT

java - Heroku 继续使用 Postgres 而不是 MySQL

heroku - 在 Heroku 上安装 AWS CLI