windows - 无法找到 heroku toolbelt 在 windows 上安装的工头

标签 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,登录工作正常,但工头没有

最佳答案

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

  • 使用控制面板的“程序和功能”卸载工具带、Ruby 和 Git
  • 将 toolbelt 重新安装到 C:\Heroku(有关更多信息,请参阅 known issue)
  • C:\Program Files (x86)\git\bin;C:\Heroku\ruby-1.9.2\bin 添加到系统 PATH 变量:控制面板、系统、高级系统设置, Environment Variables..., System variables, Variable Path, Edit...(更改 ruby-1.9.2 如果 future 版本的工具包包含更新版本的 ruby 。)
  • 打开一个 git bash 窗口并卸载 foreman 版本 0.63
    $ gem uninstall foreman
  • 然后安装 0.61 版(参见 here 了解更多信息)
    $ gem install foreman -v 0.61

现在工头为我工作:
$工头开始

关于windows - 无法找到 heroku toolbelt 在 windows 上安装的工头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19078939/

相关文章:

ruby-on-rails - heroku 上的多线程 ruby​​ worker

pull/推失败后 Git 分离头

git - Heroku 没有更新我的代码?

python - 如何使用 Flask 和 foreman (heroku) 记录错误消息?

windows - 通用 Windows 平台应用程序注册失败 - 被 AppLocker 阻止

node.js - 在 Heroku 上部署 React 和 Django

windows - "No Processes Defined"来自工头检查一个简单的 node.js Procfile

windows - 如何在 Powershell 上只获取服务器的正常运行时间?

windows - 如何更改命令行程序的标题和背景颜色

windows - Windows 文件名中的分号?