We have a project that we need to deploy from via authenticated https and it gave me some real trouble getting it to deploy via capistrano.
First, after a lot of digging, git (at least the version installed) doesn't always respect "http.sslVerify=false" in your ~/.gitconfig and we don't have a valid certificate on the repository. I also found that capistrano doesn't use an interactive ssh shell to do its work so putting "export GIT_SSL_NO_VERIFY=true" in your .bashrc file only makes it work for you, not capistrano. For capistrano I had to add "default_environment['GIT_SSL_NO_VERIFY'] = 'true'" to my deploy.rb file.
From there I just had to create the ~/.netrc file with my credentials for curl, and for good measure I setup ~/.gitconfig with "http.sslVerify=false".
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment