Mina部署rvm_path

时间:2014-02-14 00:00:58

标签: ruby-on-rails ruby deployment rvm

在Rails 4 app上遇到Mina Deploy问题?

user$ mina deploy
root@xx.xx.xxx.xx's password:
-----> Using RVM environment 'ruby-2.1.0'
! Ruby Version Manager not found
! If RVM is installed, check your :rvm_path setting.
Connection closed.

 !     Command failed.
       Failed with status 256

2 个答案:

答案 0 :(得分:4)

deploy.rb文件的基本设置中添加以下命令,让mina找到rvm路径。 set :rvm_path, '/usr/local/rvm/scripts/rvm'

然后再次运行mina deploy

答案 1 :(得分:0)

对于最新的mina部署,请按如下方式设置:

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