【发布时间】:2013-03-02 05:35:57
【问题描述】:
我一直在尝试完成this tutorial,但遇到了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
所以我尝试在 git bash 中输入 cmd,方法是输入 cmd,然后使用 foreman start(类似于 a comment on one of the answers to this question 的建议)。这就是产生的结果:
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 的文件位置在我的计算机上甚至不存在。
我查看了类似问题的其他答案,但是我没有收到类似的错误,因此不相信目前存在解决我问题的方法。
【问题讨论】:
标签: python ruby heroku foreman git-bash