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

Nex*_*tar 18 windows heroku foreman heroku-toolbelt

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

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

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

Mar*_*cok 32

我使用git的bash在Windows7 64位上遇到了同样的问题.这是我做的:

  • 使用控制面板的"程序和功能"卸载toolbelt,Ruby和Git
  • 重新安装工具带C:\Heroku(有关详细信息,请参阅已知问题)
  • 添加C:\Program Files (x86)\git\bin;C:\Heroku\ruby-1.9.2\bin到系统PATH变量:控制面板,系统,高级系统设置,环境变量...,系统变量,变量Path,编辑...(ruby-1.9.2如果工具箱的未来版本包含更新版本的Ruby,则更改.)
  • 打开一个git bash窗口并卸载工头版本0.63
    $ gem uninstall foreman
  • 然后安装版本0.61(有关详细信息,请参阅此处)
    $ gem install foreman -v 0.61

现在领班为我工作:
$ foreman start

  • 简单地将ruby添加到路径对我来说已经足够了.我仍在使用工头0.63 (7认同)

Adr*_*uez 7

您无需卸载/重新安装即可执行此操作:

  1. 开放环境变量
  2. 添加C:\Program Files (x86)\Heroku\ruby-x.x.x\bin到系统路径(假设您在此目录中安装了heroku工具带).
  3. 你完成了!通过打开一个新的shell窗口并输入来尝试它foreman start.