Installing Heroku's Taps gem

心已入冬 提交于 2020-01-03 17:42:08

问题


I'm trying to use Heroku's Taps gem to get my database from their server.

When I run

$heroku db:pull 

it says I need to install the Taps gem using the command:

sudo gem install taps

I run this command, and as expected, Taps says it has installed ("1 gem installed"). I'm able to run the Gem update taps command without an error after installing.

However,

$gem list

does not show Taps as installed, and I cannot see it in the gem folder at

/Users/username/.rvm/gems/ree-1.8.7-2010.02@timeline

Needless to say, I cannot run the Heroku db:pull command because of this.

I am running bundlr and RVM, I don't know if these are relevant.

I'm sure I'm doing something simple wrong...


回答1:


Using sudo gem install taps probably installs the gem with root permissions, and thus you can't see it as your normal user when you try to gem list. Have you tried installing the gem without sudo? or if you really want to find it, try sudo gem list.

I would suggest not installing gems with sudo though, the point of using rvm is to always have your gems bundled in a place you can access (without root) and separated conveniently with rubies/gemsets.



来源:https://stackoverflow.com/questions/4397898/installing-herokus-taps-gem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!