Skip to content

Instantly share code, notes, and snippets.

@fidel
Last active December 15, 2017 07:10
Show Gist options
  • Save fidel/4749667 to your computer and use it in GitHub Desktop.
Save fidel/4749667 to your computer and use it in GitHub Desktop.
.ssh/config
# .ssh/config
# ... other stuff
Host *
Compression yes
ForwardAgent yes
TCPKeepAlive yes
Protocol 2
# depot/config/deploy.rb
require 'bundler/capistrano'
# ...
# adjust if you are using RVM, remove if you are not
require "rvm/capistrano"
set :rvm_ruby_string, '1.9.3'
set :rvm_type, :user
ssh_options[:forward_agent] = true # add this
# file paths
set :repository, "#{user}@#{domain}:git/#{application}.git"
set :deploy_to, "/home/#{user}/#{domain}"
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment