我一直在尝试完成本教程,但是遇到了foreman start
生产线问题。我正在使用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
interpreter: No such file or directory
因此,我尝试通过键入cmd
然后使用来在git bash中输入cmd foreman start
(类似于对该问题的答案之一的注释所示)。这就是产生的结果:
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
我不知道第二组错误试图告诉我什么,因为似乎声称engine.rb正在运行的文件位置在我的计算机上甚至不存在。
我已经查看了类似问题的其他答案,但是我没有收到类似的错误,因此不相信当前存在解决问题的方法。
我有这个问题。我通过卸载工头gem的0.62版本并安装了0.61来修复它。
gem uninstall foreman
gem install foreman -v 0.61
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句