I am trying to deploy ruby on rails application with chef, I am facing an issue. During the code deployment I need to run bundle update/bundle install. I am trying to figure out how do I run the command. I tried with "bundler true" the chef threw error while deploying. So I wrote a function
execute "bundler" do
command "bundle install"
ssh_wrapper "/home/ubuntu/.ssh/chef_ssh_deploy_wrapper.sh"
end
Since my gemfile includes gems and code repo's for github and other bit bucket accounts, it stops to add it to known_hosts and chef fails to move further.
How do avoid such issue and do a smooth deployment. Kindly suggest.