ruby on rails - Use Heroku binary instead of gem -


i have installed ruby 2.2.2 through rvm, , have installed heroku. installed heroku downloading recent release github, installing needed gems, , symlinking /usr/bin/ found when needed use command. worked initially, after while (this may have happened on restart), heroku commands have ruby error.

the symlinked binary still works correctly if explicitly specify path.

output:

user@ben-pc-linux:~$ heroku login /home/user/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': not find 'heroku' (>= 0) among 96 total gem(s) (gem::loaderror) checked in 'gem_path=/home/user/.rvm/gems/ruby-2.2.2:/home/user/.rvm/gems/ruby-2.2.2@global', execute `gem env` more information         /home/user/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb:324:in `to_spec'         /home/user/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'         /home/user/.rvm/gems/ruby-2.2.2/bin/heroku:22:in `<main>'         /home/user/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `eval'         /home/user/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `<main>' user@ben-pc-linux:~$ /usr/bin/heroku login enter heroku credentials. email:  

the place heroku command works supposed in /usr/local/heroku, i'm guessing because /usr/local/heroku/bin/ searched before using path. in /usr/bin/, error occurs.

you can create alias heroku command put below code in .bash_profile file

alias heroku="/usr/bin/heroku"

.bash_profile it's loaded each time open terminal.

note:- have reload current terminal have working use

$. .bash_profile 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -