首页 > 其他 > 详细

cap deploy:setup报错

时间:2015-11-26 22:54:22      阅读:366      评论:0      收藏:0      [点我收藏+]

今天部署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,问题解决!

cap deploy:setup报错

原文:http://www.cnblogs.com/aresxin/p/4998908.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!