zoukankan      html  css  js  c++  java
  • 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,问题解决!

    作者:Mr.Ares
    个性签名:许多人的付出都是浅尝辄止!
  • 相关阅读:
    ubuntu系统安装初始化脚本
    21_多线程
    20_IO
    19_异常
    18_集合
    17_内部类和常用类
    16_接口
    15_abstract,static,final
    14_面向对象
    13_数组
  • 原文地址:https://www.cnblogs.com/aresxin/p/4998908.html
Copyright © 2011-2022 走看看