If you have changed the SSH port number on your server, then you need to let Capistrano know how to connect. Luckily, it's pretty easy.
Add the following to your deployment file, replacing 8888 with your port number.
ssh_options[:port] = 8888
This will apply that port number to connections made by Capistrano. If you need to specify the port for each server (app, web, db) then tack it on to the end of their declarations.
role :app, "220.127.116.11:8030" role :web, "18.104.22.168:8031" role :db, "22.214.171.124:8032", :primary => true
I haven't verified that one, but it supposedly works. Happy deployments!
Need web application development, maintenance for your existing app, or a third party code review?
Velocity Labs can help.Hire us!