heroku - 部署到 Heroku Play 2.2 应用程序时出错

标签 heroku playframework playframework-2.0

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

2014-03-27T14:17:06.465302+00:00 heroku[api]: Deploy ea0e14d by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="770f0f0f0f37101a161e1b5914181a" rel="noreferrer noopener nofollow">[email protected]</a>
2014-03-27T14:17:06.465378+00:00 heroku[api]: Release v10 created by <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9ce4e4e4e4dcfbf1fdf5f0b2fff3f1" rel="noreferrer noopener nofollow">[email protected]</a>
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

我猜这是 2.2 及以上版本的标准。 怎么了? enigmatic dusk 是 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

最佳答案

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

关于heroku - 部署到 Heroku Play 2.2 应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22690433/

相关文章:

git - .ssh/id_rsa 失败 : permission denied

python - 使用中的 Gunicorn 连接 : ('0.0.0.0' , 5000)

带有 Waitress WSGI 的 Python Flask 无法与 Heroku 一起使用

clojure - 我可以将 Play 和 Akka 与 Clojure 一起使用吗?

scala - playframework - 如何在 Scala 中设置选择输入

scala - 如何使用 Scala 在 Play!2 中提供上传的文件?

java - Play框架处理表信息

heroku - 尝试 git Push 到远程分支时出现错误 (Heroku)

scala - 覆盖助手默认超时

java - 使用公共(public) Assets 会引发编译错误