简体   繁体   中英

Capistrano and rvm the right way

I have this situation on my client workstation.

When i try to make a deploy, with

cap deploy

i get this error message:

capistrano is not part of the bundle. Add it to Gemfile. (Gem::LoadError)

Ok! But i don't want to add it to gemfile. I want to use it system wide. The gem is currently installed.

Some information about the binary:

~/Code/ecommerce (master ✔) ᐅ which cap
cap: aliased to bundled_cap


~/Code/ecommerce (master ✔) ᐅ which bundled_cap
  bundled_cap () {
    _run-with-bundler cap $@
  }

Any idea? I'm in wrong?

Seems like bundle exec is being prepended to your cap deploy command.

Are you using something like bundler-exec or oh-my-zsh ?

Ok the main problem was the oh-my-zsh aliases and the bundler plugin

this is the file https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/bundler/bundler.plugin.zsh

now is working fine again!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM