I want to deploy my Symfony2 application to two servers with one IP but different SSH-Ports in one “cap deploy” command:
Connect via SSH to 127.0.0.1:22 and deploy, then
connect via SSH to 127.0.0.1:24 and deploy
How do I accomplish this with Capifony/Capistrano?
I can only find examples where I can deploy to different IPs but not to two different ports to one IP at the same time.
Like @CDub already said:
Use 2 separate tasks and 1 common and just override `:port’ value in each of them. Something like that: