Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I replace the Heroku gem with Heroku Toolbelt?

Tags:

heroku

I know that there are closely related question to mine but they did not help me.

I'm learning the whole rails, gem, git, heroku concept and liking it a lot. When I issued heroku command line actions (Ubuntu linux) I received warnings that the gem was deprecated and I should install the toolbelt. I ran the full wget install of the tool belt:

wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh

But now when I use the heroku command line I still get the deprecated warning. I suspect I have to get rid of the heroku gem but I'm not sure how to do that ? I want to be sure to do it correctly so it's not later loaded again via bundler. Thank you.

like image 434
Will Avatar asked Oct 19 '12 18:10

Will


People also ask

How do I change heroku version?

To upgrade via the Heroku Dashboard, navigate to your app settings page and click the Upgrade Stack button. Confirm that you want to upgrade, which will set the stack to the latest version.

What is heroku toolbelt?

The Heroku Toolbelt is a package of the Heroku CLI, Foreman, and Git — all the tools you need to get started using Heroku at the command line. The Toolbelt is available as a native installer for OS X, Windows, and Debian/Ubuntu Linux. The Toolbelt has been available since last fall as part of our polyglot platform.

How do I update heroku on Windows?

If you installed the CLI with apt , you must use sudo apt-get update && sudo apt-get upgrade heroku . If you installed the CLI with npm or yarn , you must use npm upgrade -g heroku or yarn global upgrade heroku .


2 Answers

The uninstall command will remove any gem. In this case, you want to use the following:

gem uninstall heroku
like image 186
tagCincy Avatar answered Oct 20 '22 13:10

tagCincy


I had issues getting Toolbelt to work. I am running OSX so my solution may not work for your Ubuntu linux setup. I still thought I might share just in case. Here are the steps I used to get it to work:

  1. Remove the heroku gem by running gem uninstall heroku. It did ask if I wanted to remove executables: heroku. Be sure to choose yes.

  2. Go to [https://toolbelt.heroku.com/][1] and download / install the Toolbelt app.

  3. On the Toolbelt page it mentioned that /usr/local/heroku/bin will be added to your PATH. I was not seeing this and was not sure if it is becuase I am running zsh instead of bash. I went ahead and opened my .zshrc file and added it to my PATH.

like image 35
jameswilliamiii Avatar answered Oct 20 '22 13:10

jameswilliamiii