Heroku App Crash H10 – bash:bin / rails:没有这样的文件或目录

我的部署问题。 我的测试env本地工作很好,没有错误。 当我推到Heroku时,我得到了这个:

2013-07-17T15:54:04.619297+00:00 app[web.1]: bash: bin/rails: No such file or directory 2013-07-17T15:54:07.240398+00:00 heroku[web.1]: Process exited with status 127 2013-07-17T15:54:07.255379+00:00 heroku[web.1]: State changed from starting to crashed 2013-07-17T15:54:13.467325+00:00 heroku[web.1]: Error R99 (Platform error) -> Failed to launch the dyno within 10 seconds 2013-07-17T15:54:13.467325+00:00 heroku[web.1]: Stopping process with SIGKILL 2013-07-17T15:54:58.714647+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=radiant-thicket-1062.herokuapp.com fwd="174.4.33.188" dyno= connect= service= status=503 bytes= 

我不确定在哪里调用bin / rails或者如何解决这个问题。 我在H10的任何其他地方都找不到任何相关信息。 这就像我是唯一一个经历过这种情况的人(不太可能……)!

我很感激任何见解或帮助。 谢谢!

你错过了在Rails 4中添加的bin文件夹。运行rake rails:update:bin来创建它,然后进行提交并推送到Heroku。

我找到了问题的解决方案 – 这很简单:

 heroku config:set PATH=bin:vendor/bundle/ruby/2.0.0/bin:/usr/local/bin:/usr/bin:/bin 

我在这里找到了解决方案: https : //devcenter.heroku.com/articles/ruby-versions

添加路径不一定有帮助,因为它正在项目目录下查找“bin”目录,这是目前在rails 4下的标准目标。转到“bin / rails:没有这样的文件或目录”下的答案w / Ruby 2和Heroku上的Rails 4获取更多信息。