今天部署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,问题解决!
在使用Capistrano v2.15.0进行部署时遇到错误,该错误与目标服务器数量超过一个有关。通过修改gem中特定行的代码,将{branch.to_s(true)}

432

被折叠的 条评论
为什么被折叠?



