Created
December 23, 2013 23:28
-
-
Save wlmcewen/8106602 to your computer and use it in GitHub Desktop.
Override the default environment settings in Capistrano 3.0.1
This file contains 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
# 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