在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
答案 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