Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Heroku Toolbelt has broken Taps

I've been hapilly using the Heroku and Taps gems for a while now, regularly doing a heroku db:push to push my database up to production.

This morning I noticed a message that the Heroku gem was deprecated, having been superseded by the Heroku Toolbelt. So I uninstalled the gems and installed the Heroku Toolbelt.

The next time I went to push my database I got the following error:

!    Taps Load Error: cannot load such file -- taps/operation
!    You may need to install or update the taps gem to use db commands.
!    On most systems this will be:
!    
!    sudo gem install taps

Both Heroku and Taps are correctly installed, but in frustration I've tried following the instructions ('install or update the taps gem to use db commands') without success. The (re)install goes fine but I still get the above error when I try and push the database. Can anyone suggest a fix? I'm using rbenv.

like image 377
Undistraction Avatar asked Oct 21 '12 19:10

Undistraction


2 Answers

Well I uninstalled the toolbelt using commands from here:

rm -rf /usr/local/heroku
rm -rf /usr/bin/heroku

Then removed the following from my .bash_profile

### Added by the Heroku Toolbelt

export PATH="/usr/local/heroku/bin:$PATH"

And it works again.

Moral of the story - avoid the Heroku Toolbelt and stick to the gems.

like image 86
Undistraction Avatar answered Nov 09 '22 11:11

Undistraction


Can you try PG Transfers plugin for Heroku, documentation is on the page itself.

https://github.com/ddollar/heroku-pg-transfer

This seems to be recommended approach now by Heroku.

like image 39
Icicle Avatar answered Nov 09 '22 11:11

Icicle