cap deploy:setup报错

在使用Capistrano v2.15.0进行部署时遇到错误,该错误与目标服务器数量超过一个有关。通过修改gem中特定行的代码,将{branch.to_s(true)}

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

转载于:https://www.cnblogs.com/aresxin/p/4998908.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值