While bundle:install phase after deploy:finalize_update,i\'m getting an error about nokogiri. It suggests ,
** [out :: *******] Make s
If you're using Capistrano 3.x you can do the following in your deploy.rb file (or environment specific file i.e. deploy/production.rb)
set :bundle_env_variables, { 'NOKOGIRI_USE_SYSTEM_LIBRARIES' => 1 }
This way you avoid overriding the bundle install task. This will set the given env variables when running bundle install.