相关疑难解决方法(0)

无法使用Python在Heroku教程中启动工头

我一直在尝试完成本教程,但遇到了问题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
Run Code Online (Sandbox Code Playgroud)

因此,我尝试通过键入cmd然后使用foreman start(类似于对此问题的答案之一的评论建议)在git bash中输入cmd .这就是产生的:

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
Run Code Online (Sandbox Code Playgroud)

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

ruby python heroku git-bash foreman

41
推荐指数
3
解决办法
1万
查看次数

由heroku toolbelt安装在Windows上的Foreman无法找到

我只是从Heroku开始使用nodejs教程. https://devcenter.heroku.com/articles/getting-started-with-nodejs#declare-process-types-with-procfile

但我在部分"使用procfile声明进程类型"时出现错误我的问题是我的cmd(使用Windows 7)没有找到命令"foreman"

有解决方案吗 我下载/安装了heroku toolbelt,登录工作正常,但是工头不行

windows heroku foreman heroku-toolbelt

18
推荐指数
2
解决办法
1万
查看次数

标签 统计

foreman ×2

heroku ×2

git-bash ×1

heroku-toolbelt ×1

python ×1

ruby ×1

windows ×1