Seems like you found outdated guide that aren't clear about which version
of Capistrano they refer to. Please read
https://github.com/capistrano/sshkit#tunneling-and-other-related-ssh-themes
and try that.

Lee Hambley
http://lee.hambley.name/
+49 (0) 170 298 5667

On 30 March 2016 at 11:00, <pcarg...@remedia.it> wrote:

> Versions:
>
>    - Ruby : ruby 2.0.0p645
>    - Capistrano : 3.4.0
>    - Rake   10.3.2
>
> Platform:
>
>    - Bedrock, a framework to build wordpress site
>
> Files:
>
>    - Capfile - I'm goin to  attach it to you
>    - deploy.rb  - I'm goin to  attach it to you
>    - Stage files (staging.rb)  - I'm goin to  attach it to you
>
>
>
>
>
> Hi,
>
> I can't deploy my bedrock with capistrano to another port, different than
> 22.
>
> Googling this problem, I tried to specifiy the port in 4 different way:
> 1 - In the definition of a rule, in this two way:
>
> role :app, %w{u...@mysshdomain.cloudapp.net}, port: 60601
> role :app, %w{u...@mysshdomain.cloudapp.net:60601}
> 2- In the definition of the server, in this two way:
>
> server 'mysshdomain.cloudapp.net', user: 'user', roles: %w{web app db}, port: 
> 60601
> server 'mysshdomain.cloudapp.net:60601', user: 'user', roles: %w{web app db}
>
> 3 - Using the ssh_option variable , in this way:
>
>  set :ssh_options, {
>     port: 60601
>  }
>
> 4 - Using the variable port, in this way:
>
> set :port , 60601
>
> None of this seems to work, but maybe I 'm making some errors.
>
>
>
> Could you please help me?
>
>
>
> *NB : *Of course, with terminal I have no problem to log in the remote
> server specifyng the port.
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to capistrano+unsubscr...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/capistrano/c9dd759b-1b4d-4f6e-87bd-5c8fc28f2730%40googlegroups.com
> <https://groups.google.com/d/msgid/capistrano/c9dd759b-1b4d-4f6e-87bd-5c8fc28f2730%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to capistrano+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/capistrano/CAN_%2BVLXeNX%2BQuDdtxfKPn37osO4diw%2B2Dz8V3hqHMyP6NcYx%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to