First off let me say this is the first time I’ve deployed out a rails application so I’m pretty new to this. I have my production environment running successfully now and deployed it using Capistrano, but the deploy failed the first time due to missing gems. To get around it I basically cloned my repo on the server, ran
bundle install
This successfully installed the gems and Capistrano deployed successfully the next time around.
So with that in mind, is there a correct way to get new gems to install on each deploy?
My environment is Ubuntu Server, Apache2, Passenger, Rails.
Thanks!
We have the following in our deploy.rb
Works like a treat for us although usually on a new build we’ll have to install a few gems on the server directly.