2011-01-27 11 views
5

Ristアプリケーションをcapistrano経由でリモートイントラネット上のサーバーに展開する必要があります。たとえば、ターゲットサーバーにsshを実行すると、次のようになります。Capistranoがサーバーのチェーンを通じて展開する

localhost$ ssh server1 
server1$ ssh server2 

どのような方法がありますか?

ありがとうございます。

答えて

5

これは本当に簡単です。 config/deploy.rbに

set :gateway, "[email protected]:port" 

を使用してください。

2

私が使用することをお勧めします:

set :ssh_options, { :forward_agent => true } 
set :gateway, "[email protected]:port" 
関連する問題