문제

I really like recap gem for applications deployment.

I have only one question: how to use the capistrano set: gateway, deploy@gateway.host option with recap?

In our projects we use virtualization and all the applications we are running in isolated containers and access to container possible only via ssh tunnel through gateway.

도움이 되었습니까?

해결책

Use simple ssh feature, like this:

ssh -F path/to/config

Add the ssh config (ex. in config dir):

Host your_server_available_from_gateway_server
  User username
  ForwardAgent yes 
  ProxyCommand ssh gateway_server nc %h %p

In recap you should use this:

  set :ssh_options, { :config => 'path/to/config'}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top