Heroku Toolbelt安装问题 [英] Heroku Toolbelt install problems

查看:313
本文介绍了Heroku Toolbelt安装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我卸载了heroku gem并安装了Heroku Toolbelt,并遇到了使用RVM工作的问题。


$ b

heroku version

code>命令可以在除了我当前的项目文件夹以外的任何地方工作。



在我的项目文件夹中,我得到

'/ Users/cmalpeli/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/rubygems_integration.rb:223:in'block in replace_bin_path ':无法找到可执行文件heroku(Gem :: Exception)
from ./bundler_stubs/heroku:16:in
`



在我的项目目录中运行 which heroku 返回:


$ b

./ bundler_stubs / heroku



其他地方都会返回
$ b

/ usr / bin / heroku



我相信它有什么可做的w / RVM - 但我不太明白这是如何工作的,所以会感谢一下帮助。



谢谢!

解决方案

确保 heroku 不属于您的 Gemfile - 它不应该在那里。



然后删除 ./ bundler_stubs / heroku

  rm -f ./bundler_stubs / heroku 

有可能是 ./ bundler_stubs / heroku 是您的项目的一部分,并且由您的一位同事承担,这些存根不应该成为该项目的一部分。


I uninstalled the heroku gem and installed the Heroku Toolbelt and am running into issues getting it working w/ RVM.

heroku version command works everywhere except my current project folder.

In my project folder I get

'/Users/cmalpeli/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/rubygems_integration.rb:223:in 'block in replace_bin_path': can't find executable heroku (Gem::Exception) from ./bundler_stubs/heroku:16:in`

Running which heroku in my project directory returns:

./bundler_stubs/heroku

everywhere else it returns

/usr/bin/heroku

I'm sure it has something to do w/ RVM - but I don't quite understand how that works, so would appreciate a bit of help.

Thanks!

解决方案

make sure heroku is not part of your Gemfile - it should not be there.

then remove ./bundler_stubs/heroku:

rm -f ./bundler_stubs/heroku

it is possible that ./bundler_stubs/heroku is part of your project and was committed by one of your coworkers, the stubs should not be part of the project.

这篇关于Heroku Toolbelt安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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