Heroku 应用程序崩溃 H10 - bash: bin/rails: 没有那个文件或目录 [英] Heroku App Crash H10 - bash: bin/rails: No such file or directory

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

问题描述

我的部署有问题.我的测试环境在本地运行良好,没有错误.当我推送到 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-版本

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

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

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