Capistrano one username for multiple users

I have several developers working on the same application on rails. I am trying to configure capistrano to use a single login (preferably with public keys versus password). I don't seem to see anything on the network that covers this. Can someone point me in the right direction?

thank

+5
source share
2 answers

You can use the command set :user, "username"to set a common username, such as deploy Then you can add all your public keys to the file/home/deploy/.ssh/authorized_keys

+7
source

I added the following to config / deploy.rb:

namespace :deploy do
  [...]
  set :user, "my_username"
  [...]
end

.

0

All Articles