Skip to content

Instantly share code, notes, and snippets.

@wlmcewen
Created December 23, 2013 23:28
Show Gist options
  • Save wlmcewen/8106602 to your computer and use it in GitHub Desktop.
Save wlmcewen/8106602 to your computer and use it in GitHub Desktop.
Override the default environment settings in Capistrano 3.0.1
# Using set here doesn't work, as the git tasks are loaded later.
# set :git_environmental_variables, ->() {
# ...
task :override_defaults
set :git_environmental_variables, ->() {
{
git_askpass: "/bin/echo",
git_ssh: "/home/deploy/util/gitkey/wrapper"
}
}
end
before 'deploy', 'override_defaults'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment