rails / heroku从宝石迁移到工具带 [英] rails/heroku migrating from gem to toolbelt

查看:96
本文介绍了rails / heroku从宝石迁移到工具带的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经用一个项目来使用heroku gem。现在工具带已经关闭了,我想切换。我从Gemfile中删除了gem,然后通过gem uninstall heroku卸载它。我用heroku的网站安装了heroku toolbelt。



现在,我系统上的任何地方都可以使用新的工具栏,例如

  heroku版本

但是,在我存储Rails项目的那个目录中,我收到一个错误,因为它仍然在寻找旧的heroku gem(现在已经被卸载)。



我链接到新的工具栏,而不是该文件夹中的旧宝石?



顺便说一句:我也创建了一个新的rm gemset,它没有改变行为。 删除〜/ .heroku / client 文件夹并重新安装工具栏。



参考: https://stackoverflow.com/a/10988217/429758


I used to use the heroku gem with a project. Now that the toolbelt is out, I wanted to switch. I removed the gem from the Gemfile and I uninstalled it via gem uninstall heroku. I installed the heroku toolbelt with the pkg from heroku's website.

Now, everywhere on my system it seems that the new toolbelt is available when I do e.g.

 heroku version

But inside that one directory where I store my Rails Project, I get an error as it is still looking for the old heroku gem (that has now been uninstalled).

How do I link to the new toolbelt instead of the old gem inside that folder?

BTW: I've also created a new rvm gemset and it did not change the behaviour.

解决方案

Remove ~/.heroku/client folder and reinstall toolbelt.

Ref: https://stackoverflow.com/a/10988217/429758

这篇关于rails / heroku从宝石迁移到工具带的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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