Why doesn't Capistrano set gemstones with a bunch?

Every time I deploy an application with Capistrano, he complains about the lack of gems. For instance:

** [out :: mysite.com] Could not find WhateverGem-1.0.0 in any of the sources ** [out :: mysite.com] Run `bundle install` to install missing gems. 

I resolve this by manually uploading my Gemfile, SSHing to the server and running bundle install . However, this should not happen.

Here's a copy of my deploy.rb and Capfile .

Can someone point me in the right direction?

+6
source share
1 answer

You probably just need to add this to your config / deploy.rb

 require "bundler/capistrano" 
+19
source

Source: https://habr.com/ru/post/917272/


All Articles