简体   繁体   中英

Rails deployment Capistrano - capistrano/cli (LoadError)

I followed this tutorial.

https://gorails.com/deploy/ubuntu/14.04#capistrano

Now i am stuck at this

I ran this command after set Adding The Nginx Host cap production deploy

and ran into this, now no idea what to do.

/home/deploy/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- capistrano/cli (LoadError) from /home/deploy/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from /usr/bin/cap:3:in `'

I solve this problem by remove old Capistrano gem.

# remove all old versions of the gem
gem cleanup rjb

I have the same error and it's because I installed this Gem and upgraded my ruby from 2.0.0 to 2.1.9. Reinstallation resolves my issue. Hope this can help you.

If you still have this problem, I highly recommend you use bundler and

bundle exec cap <args>

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