播放2.5.4应用程序不在Heroku上启动

时间:2017-02-14 11:25:34

标签: heroku playframework

我正在尝试部署一个play 2.5.4应用程序,但它无法正常工作。

以下是我的procfile的样子:

web: target/universal/stage/bin/playproject

plugins.sbt

// The Play plugin

    addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.4")

build.sbt

    name := """playproject"""

    scalaVersion in ThisBuild := "2.11.8"
....

在heroku上这里是日志:

enter image description here

知道问题是什么?

1 个答案:

答案 0 :(得分:0)

如果您尝试构建项目,例如尝试sbt stage,您会看到项目的根文件夹下没有target/universal/stage/bin/playproject。您在examples文件夹下的真实播放应用,因此在您的 Procfile 中,您需要指定:

web: examples/target/universal/stage/bin/examples
相关问题