【问题标题】:Error Deploying to Heroku Play 2.2 app部署到 Heroku Play 2.2 应用程序时出错
【发布时间】:2014-03-27 14:21:01
【问题描述】:

我认为我的 Procfile 有问题。部署已成功编译,但应用程序未启动此消息--

2014-03-27T14:17:06.465302+00:00 heroku[api]: Deploy ea0e14d by xxxx@gmail.com
2014-03-27T14:17:06.465378+00:00 heroku[api]: Release v10 created by xxxx@gmail.com
2014-03-27T14:17:14.091032+00:00 heroku[web.1]: Starting process with command `target/universal/stage/bin/enigmatic-dusk-7498 -Dhttp.port=32253`
2014-03-27T14:17:15.199466+00:00 app[web.1]: bash: target/universal/stage/bin/enigmatic-dusk-7498: No such file or directory
2014-03-27T14:17:16.511169+00:00 heroku[web.1]: Process exited with status 127
2014-03-27T14:17:16.521177+00:00 heroku[web.1]: State changed from starting to crashed

procfile 读取:

web: target/universal/stage/bin/enigmatic-dusk-7498 -Dhttp.port=$PORT

我猜这是 play 2.2 以后的标准。 怎么了?神秘的黄昏是 heroku 给我的应用程序起的名字。我的本地名称不同。

编辑:

根据一些建议,我尝试将 procfile 更改为我的本地应用程序名称。

新建 Procfile -

web: target/universal/stage/bin/ExampleBootStrap -Dhttp.port=$PORT

还是失败了。

2014-03-27T17:58:12.527528+00:00 heroku[web.1]: Starting process with command `target/universal/stage/bin/ExampleBootStrap -Dhttp.port=38392`
2014-03-27T17:58:13.948429+00:00 app[web.1]: bash: target/universal/stage/bin/ExampleBootStrap: No such file or directory
2014-03-27T17:58:15.608461+00:00 heroku[web.1]: Process exited with status 127
2014-03-27T17:58:15.621947+00:00 heroku[web.1]: State changed from crashed to starting
2014-03-27T17:58:15.620997+00:00 heroku[web.1]: State changed from starting to crashed
2014-03-27T17:58:27.265083+00:00 heroku[web.1]: State changed from starting to crashed
2014-03-27T17:58:24.366648+00:00 heroku[web.1]: Starting process with command `target/universal/stage/bin/ExampleBootStrap -Dhttp.port=33223`
2014-03-27T17:58:25.666535+00:00 app[web.1]: bash: target/universal/stage/bin/ExampleBootStrap: No such file or directory
2014-03-27T17:58:27.250296+00:00 heroku[web.1]: Process exited with status 127

【问题讨论】:

    标签: heroku playframework playframework-2.0


    【解决方案1】:

    在您的 procfile 中,您必须将 enigmatic-dusk-7498 替换为您的游戏项目的名称小写字母,而不是您的 heroku 应用程序。

    【讨论】:

    • 试过这个。有关编辑/详细信息,请参见上文。还是不行。
    • 我也面临同样的问题。我尝试了所有可能的 Procfile 配置,但仍然没有运气。请问你能指导我吗?
    • 使用 build.sbt 文件 + Procfile + heroku 日志创建一个新线程并在此处提供链接 ;)
    猜你喜欢
    • 1970-01-01
    • 2023-03-31
    • 2016-09-23
    • 2014-07-21
    • 2015-09-22
    • 2017-09-14
    • 2015-12-09
    • 2020-04-06
    • 2016-04-08
    相关资源
    最近更新 更多