今天部署cap的时候,setup出现以下错误:
查询半天未果,不过最后还是在google找到了,可见度娘极为不靠谱!
I had the same error on deploy:setup with v2.14.2. It seems to happen when the number of target servers are more than one. Change #{branch.to_s(true)} to #{branch.to_s}, and it worked. Ruby is 1.9.3-p392. /usr/local/lib/ruby/gems/1.9.1/gems/capistrano-2.15.0/lib/capistrano/configuration/actions/invocation.rb:181:in `inspect': wrong number of arguments(1 for 0) (ArgumentError)
解决方式:vim /usr/local/lib/ruby/gems/1.9.1/gems/capistrano-2.15.0/lib/capistrano/configuration/actions/invocation.rb 修改181行 修改{branch.to_s(true)} to #{branch.to_s()}
OK,问题解决!