我一直在尝试完成this tutorial,但遇到了foreman start行的问题。我使用的是windows7,64位的机器,并且正在尝试用Heroku工具带提供的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的文件位置在我的计算机上甚至不存在。
我已经看过类似问题的其他答案,但是我没有收到类似的错误,所以我不相信我的问题目前存在解决方案。
发布于 2013-03-31 11:49:53
我遇到了这个问题。我通过卸载0.62版的foreman gem并安装0.61修复了这个问题。
gem uninstall foreman
gem install foreman -v 0.61发布于 2013-08-30 08:58:10
是的,heroku-toolbelt installer目前无法正常工作(2013年8月30日)。对于windows,以下步骤对我有效:
。
发布于 2013-03-28 05:20:15
卸载heroku工具带并将其重新安装到其中没有空格的路径,例如C:\heorku\会有所帮助。除此之外,heroku windows安装程序目前已经严重崩溃,这对我们来说并不是一个值得骄傲的地方。要解决foreman的问题,您可以使用export VAR=VALUE自己设置环境变量,然后使用procfile中的任何命令运行您的应用程序。
这将在未来得到改善。
https://stackoverflow.com/questions/15399637
复制相似问题