I am trying to deploy with capifony, but when I run
$ cap deploy
It returns an error
--> Updating code base with remote_
Debugging Capistrano deployments:
A little trick i came up with to ease debugging is to use an environment variable to switch verbose output and some extra information on and off.
You can add something like this to your deploy.rb
(extend or shorten if you like)...
unless ENV['_DEBUG'].nil?
puts "Ruby Version => #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
puts "OpenSSL::Version => #{OpenSSL::OPENSSL_VERSION}"
puts "Net::SSH::Version::CURRENT => #{Net::SSH::Version::CURRENT}"
puts "Net::SSH -> Local platform => #{Net::SSH::Authentication::PLATFORM}"
puts "Remote Whoami => #{capture 'whoami'}"
puts "umask on Server => #{capture 'umask'}"
puts "$SHELL => #{capture 'echo $SHELL'}"
puts "$BASH_VERSION => #{capture 'echo $BASH_VERSION'}"
puts "Interactive Shell - Test: $PS1 => #{capture 'if [ -z "$PS1" ]; then echo no; else echo yes; fi'}"
logger.level = Logger::MAX_LEVEL
ssh_options[:verbose] = :debug
end
Now execute:
_DEBUG=1 cap deploy