cap deploy:setup报错

今天部署cap的时候,setup出现以下错误:

4b@6(jiw)r(5

查询半天未果,不过最后还是在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,问题解决!

posted @ 2015-11-26 20:55  我是一条最咸的咸鱼  阅读(230)  评论(0编辑  收藏  举报
返回顶部