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

时间:2014-03-27 14:21:01

标签: heroku playframework playframework-2.0

我想我的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

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

编辑:

根据一些建议,我尝试将procfile更改为我的本地app-name。

新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

1 个答案:

答案 0 :(得分:4)

在您的proc文件中,您必须将enigmatic-dusk-7498替换为您的游戏项目名称小写字母,而不是heroku app。

相关问题