当前位置: 首页 > 工具软件 > shapado > 使用案例 >

Shapado使用ricodigo-capistrano-recipes的问题

云俊名
2023-12-01

使用shapado本身的deploy.rb文件后运行cap的相关命令会报如下错误:

`<top (required)>': RVM - Capistrano integration was extracted to a separate gem, install: `gem install rvm-capistrano` and remove the `$LOAD_PATH.unshift` line, note also the 'set :rvm_type, :user' is now the default (instead of :system). (RuntimeError) 

 此时需要在Gemfile中加入

gem 'rvm-capistrano'

 并在deploy.rb中加入

require "rvm/capistrano" 

 继续运行cap命令可能又遇到新问题:

 env: /home/expedia/.rvm/bin/rvm-shell: No such file or directory

 則需要加入

set :rvm_type, :system
 

 

 

 类似资料: