The heroku command exists in these versions of Ruby:

I am having serious problems with toolbelt heroku. I use cedar stack 14, and when I try to use the ruby โ€‹โ€‹version, which is not ruby 2.0.0-dev , I get this error.

 rbenv: heroku: command not found The `heroku' command exists in these Ruby versions: 2.0.0-dev 

I need the hero to work with ruby 1.9.3 , and I donโ€™t think cedar 14 supports this version of ruby. Can someone explain first why I am allowed to use a hero with ruby 2.0.0-dev , as well as how to install an old stack that supports ruby 1.9.3 ?

+2
source share
2 answers

The problem is that there are two heroku executables on your system: one in system paths like /usr/local/bin/heroku (provided by Toolbelt), and one in rbenv gaskets because Ruby 2.0.0-dev had a stone "heroku" is installed.

Since the rbenv pad directory usually has a higher priority, it blocks the call from the heroku ever executable executable file provided by Toolbelt.

The solution is to remove any instance of the "heroku" gem and rely solely on Toolbelt to use all the heroes on the command line:

 for v in `rbenv whence heroku`; do RBENV_VERSION=$v gem uni heroku -ax; done rbenv rehash which heroku 
+10
source

You can use 1.9.3 on the cedar stack according to this . The heroku toolkit is installed as an executable, not a ruby โ€‹โ€‹stone. How do you try to execute a command? You should be able to use it from a terminal, for example heroku run rake db:migrate , etc.

0
source

All Articles