• 问题 2 的解决方案:还发现一个问题:是 deploy.rb 中的invoke :'rvm:use[ruby-2.2.1] 不成功。 解决方案: 1,在 deploy.rb 中:

    set :rvm_path, '/usr/local/rvm/scripts/rvm'
    

    2,在服务器的~/.bashrc 中加入。

    if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
    
      \# First try to load from a user install
      source "$HOME/.rvm/scripts/rvm"
    
    elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
    
      \# Then try to load from a root install
      source "/usr/local/rvm/scripts/rvm"
    
    else
    
      printf "ERROR: An RVM installation was not found.\n"
    
    fi
    

    可能你的安装目录和我的不一样,如果问题类似可以举一反三参考一下。