Created
December 17, 2014 16:24
-
-
Save peterhellberg/e823e3f73495e17f1f02 to your computer and use it in GitHub Desktop.
Capistrano deploy via gateway host
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :user, 'username' | |
set :gateway, 'example.com' | |
set :ssh_options, { | |
user: fetch(:user), | |
forward_agent: false, | |
proxy: Net::SSH::Proxy::Command.new( | |
"ssh -l #{fetch(:user)} #{fetch(:gateway)} -W %h:%p" | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment