我认为我的 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/