While bundle:install
phase after deploy:finalize_update
,i\'m getting an error about nokogiri. It suggests ,
** [out :: *******] Make s
Based on @zekus answer, I created a new task in capistrano like this:
task :custom_bundle_install, roles: :app do
run "cd /home/#{user}/apps/#{application}/releases/#{release_name} && NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install --gemfile /home/#{user}/apps/#{application}/releases/#{release_name}/Gemfile --path /home/#{user}/apps/#{application}/shared/bundle --deployment --quiet --without development test"
end
before "bundle:install", "deploy:custom_bundle_install"
This worked for me pretty well.