目前,我在通过 capistrano 进行生产部署时遇到了关于部署:资产:预编译的奇怪警告消息。
当我第一次部署演示 Rails 项目时运行 cap 生产部署时,收到以下警告消息,并且部署失败,cap 中止!
#<Thread:0x0000558ae4eef218@/home/.rvm/gems/ruby-2.5.0/gems/sshkit-1.21.2/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
1: from /home/.rvm/gems/ruby-2.5.0/gems/sshkit-1.21.2/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute'
/home/.rvm/gems/ruby-2.5.0/gems/sshkit-1.21.2/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute': Exception while executing on host IP: rake exit status: 1 (SSHKit::Runner::ExecuteError)
rake stdout: /home/ubuntu/.rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/net/protocol.rb:66: warning: already initialized constant Net::ProtocRetryError
/home/ubuntu/apps/demo-test/shared/bundle/ruby/2.5.0/gems/net-protocol-0.1.0/lib/net/protocol.rb:66: warning: previous definition of ProtocRetryError was here
/home/ubuntu/.rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/net/protocol.rb:172: warning: already initialized constant Net::BufferedIO::BUFSIZE
/home/ubuntu/apps/demo-test/shared/bundle/ruby/2.5.0/gems/net-protocol-0.1.0/lib/net/protocol.rb:206: warning: previous definition of BUFSIZE was here
/home/ubuntu/.rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/net/protocol.rb:439: …Run Code Online (Sandbox Code Playgroud)