'An error occurred when executing the “'cache:clear --no-warmup'” command' with capifony

后端 未结 1 1713
无人共我
无人共我 2021-01-16 04:58

I am trying to deploy with capifony, but when I run

$ cap deploy

It returns an error

--> Updating code base with remote_         


        
相关标签:
1条回答
  • 2021-01-16 05:43

    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
    
    0 讨论(0)
提交回复
热议问题