Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capistrano deploy through chain of servers

I need to deploy a Rails application via capistrano to a server on a remote intranet. For example, if I were to ssh into the target server it would look like:

localhost$ ssh server1
server1$ ssh server2

Whats the best way of doing this?

Thanks in advance.

like image 583
jvatic Avatar asked Jan 27 '11 22:01

jvatic


1 Answers

Capistrano makes this really easy. Just use

set :gateway, "user@server1:port"

in your config/deploy.rb.

like image 181
Clint Miller Avatar answered Sep 30 '22 04:09

Clint Miller