Heroku App Crash H10 - bash:bin / rails:没有这样的文件或目录 [英] Heroku App Crash H10 - bash: bin/rails: No such file or directory

查看:155
本文介绍了Heroku App Crash H10 - bash:bin / rails:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am having an issue with my deployment. My test env locally works great with no errors. When I push to Heroku I get this:

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的其他地方找到任何信息。这就像我是唯一一个经历过这个(不太可能)的人!

I am unsure where anything is calling bin/rails or how to solve this. I can't find any information on this anywhere else with the H10. It's like I'm the only person to ever experience this (unlikely..)!

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

I'd appreciate any insight or help. Thank you!

推荐答案

我找到了解决问题的办法 - 很简单:

I found a solution to the problem - it's quite simple:

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

I found the solution here: https://devcenter.heroku.com/articles/ruby-versions

这篇关于Heroku App Crash H10 - bash:bin / rails:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆