无法使用 Python 在 Heroku 教程中启动工头 [英] Can't start foreman in Heroku Tutorial using Python

查看:26
本文介绍了无法使用 Python 在 Heroku 教程中启动工头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试完成本教程,但遇到了问题foreman start 行.我正在使用 Windows 7、64 位机器,并尝试在 Heroku Toolbelt 提供的 git bash 终端中执行此操作.

I have been attempting to complete this tutorial, but have run into a problem with the 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 我收到:

sh.exe": /c/Program Files (x86)/Heroku/ruby-1.9.2/bin/foreman: "c:/Program: bad
interpreter: No such file or directory

所以我尝试通过键入 cmd 然后使用 foreman start(类似于 对此问题的一个答案的评论 建议).这就是它产生的:

So I tried entering the cmd in git bash by typing 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

我不知道第二组错误试图告诉我什么,因为它似乎声称正在运行 engine.rb 的文件位置在我的计算机上甚至不存在.

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.

推荐答案

我遇到了这个问题.我通过卸载 foreman gem 的 0.62 版本并安装 0.61 来修复它.

I had this problem. I fixed it by uninstalling version 0.62 of the foreman gem and installing 0.61.

gem uninstall foreman
gem install foreman -v 0.61

这篇关于无法使用 Python 在 Heroku 教程中启动工头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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