找不到安装在windows上的heroku工具栏的工头 [英] Foreman installed by heroku toolbelt on windows can't be found

查看:104
本文介绍了找不到安装在windows上的heroku工具栏的工头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是按照Heroku的nodejs教程开始的。
https:// devcenter .heroku.com / articles / getting-started-with-nodejs#declare-process-types-with-procfile

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

任何解决方案?
我下载/安装了heroku工具栏,登录工作正常,但工头不用。

解决方案

我遇到了同样的问题在Windows7 64位上,使用git的bash。以下是我所做的:


  • 使用控制面板的程序和功能来卸载工具栏,Ruby和Git
  • 将工具栏重新安装到 C:\Heroku (请参阅已知问题

  • 添加 C:\程序文件(x86)\git\bin; C:\Heroku\ruby -1.9.2\bin 到系统PATH变量:控制面板,系统,高级系统设置,环境变量...,系统变量,变量路径,Edit ...(更改 ruby​​-1.9.2 ,如果未来版本的工具栏包含更新版本的Ruby。)

  • 打开git bash窗口并卸载foreman 0.63版本

    $ ge $ uninstall foreman

  • 然后安装0.61版本有关详细信息,请参阅此处
    $ gem install foreman -v 0.61

    现在工头工人d对我来说:

    $ foreman start


    I simply followed the getting started with nodejs tutorial from Heroku. https://devcenter.heroku.com/articles/getting-started-with-nodejs#declare-process-types-with-procfile

    But I get an error at the part "declare process types with procfile" My problem is that my cmd (using windows 7) didn't find the command "foreman"

    Any solutions ? I downloaded/installed the heroku toolbelt, the login works fine, but foreman dont

    解决方案

    I had the same problem on Windows7 64-bit, using git's bash. Here's what I did:

    • uninstall the toolbelt, Ruby, and Git using Control Panel's "Program and Features"
    • reinstall the toolbelt to C:\Heroku (see known issue for more info)
    • add C:\Program Files (x86)\git\bin;C:\Heroku\ruby-1.9.2\bin to the system PATH variable: Control Panel, System, Advanced system settings, Environment Variables..., System variables, Variable Path, Edit... (Change ruby-1.9.2 if a future version of the toolbelt includes a newer version of Ruby.)
    • open a git bash window and uninstall foreman version 0.63
      $ gem uninstall foreman
    • then install version 0.61 (see here for more info)
      $ gem install foreman -v 0.61

    Now foreman worked for me:
    $ foreman start

    这篇关于找不到安装在windows上的heroku工具栏的工头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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