Reputation: 4277
We have a team of 2 people writing Rails application. We use DigitalOcean as of VPS and capistrano to deploy it.
But the capistrano deployment scripts are only on one of our two machines.
Is it possible to set up capistrano on the second machine to deploy same project also from it? If yes, how this looks like?
P.S. This might be very easy like adding some SSH keys and running cap production deploy
from second machine as the remote VPS has whole infrastructure set up. But we can't take the risk on production system.
Upvotes: 0
Views: 104
Reputation: 2653
There are a couple ways of doing this:
Where I work, we generally just add Capistrano to a Rails app's Gemfile, and anyone who checks it out can deploy it to any server to which they have access. Developer SSH keys are added to the servers for this purpose.
Good luck!
Upvotes: 2