问题描述
我一直在尝试完成,但遇到了问题领班开始
行。我正在使用Windows 7,64位机器,并试图在Heroku Toolbelt提供的git bash终端中执行此操作。
当我输入 foreman start
我收到:
sh.exe:/ c / Program Files(x86) /Heroku/ruby-1.9.2/bin/foreman:c:/ Program:bad
解释器:没有这样的文件或目录
所以我尝试输入 我不知道第二组错误试图告诉我什么,因为它似乎声称engine.rb文件的位置运行,甚至不存在于我的电脑上。 我看过类似问题的其他答案,但是我没有收到类似的错误,所以不相信目前我的问题的解决方案。 我有这个问题。我通过卸载foreman gem的0.62版本并安装了0.61来修复它。 I have been attempting to complete this tutorial, but have run into a problem with the When I enter So I tried entering the cmd in git bash by typing I have no clue what the second set of errors is trying to tell me, since the file location it seems to claim engine.rb is running from does not even exist on my computer. I have looked at other answers to similar problems, however I am not receiving similar errors and so do not believe a solution to my problem currently exists. I had this problem. I fixed it by uninstalling version 0.62 of the foreman gem and installing 0.61. 这篇关于使用Python无法在Heroku教程中启动工头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! cmd
然后使用 foreman start $ c在git bash中输入cmd $ c>(类似于建议)。这是产生的结果:
$ p $ 错误的文件描述符
c:/ Program Files(x86)/Heroku/ruby-1.9 .2 / lib / ruby / gems / 1.9.1 / gems / foreman-0.62.0
/lib/foreman/engine.rb:377:in`read_nonblock'
c:/ Program Files(x86) /Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/foreman-0.62.0
/lib/foreman/engine.rb:377:in`block(2 levels)in watch_for_output '
c:/ Program Files(x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/foreman-0.62.0
/lib/foreman/engine.rb :373:在`loop'
c:/ Program Files(x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/foreman-0.62.0
/ lib /foreman/engine.rb:373:in`block in watch_for_output'
21:06:08 web.1 |用代码1
退出21:06:08 system |发送SIGKILL到所有进程
gem卸载工头
gem install foreman - v 0.61
foreman start
line. I am using a windows 7, 64 bit machine and am attempting to do this in the git bash terminal provided by the Heroku Toolbelt.foreman start
I receive:sh.exe": /c/Program Files (x86)/Heroku/ruby-1.9.2/bin/foreman: "c:/Program: bad
interpreter: No such file or directory
cmd
and then using foreman start
(similar to a comment on one of the answers to this question suggests). This is what that produced:Bad file descriptor
c:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/foreman-0.62.0
/lib/foreman/engine.rb:377:in `read_nonblock'
c:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/foreman-0.62.0
/lib/foreman/engine.rb:377:in `block (2 levels) in watch_for_output'
c:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/foreman-0.62.0
/lib/foreman/engine.rb:373:in `loop'
c:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/foreman-0.62.0
/lib/foreman/engine.rb:373:in `block in watch_for_output'
21:06:08 web.1 | exited with code 1
21:06:08 system | sending SIGKILL to all processes
gem uninstall foreman
gem install foreman -v 0.61