gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 06:15:30 27 4
gpt4 key购买 nike

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

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com