[英]Install rvm with rvm1-capistrano3 only if it is not installed
I use rvm1-capistrano3
in my project. 我在项目中使用
rvm1-capistrano3
。
When I run cap staging deploy
, I would like to install rvm
, if there is no rvm
installed. 当我运行
cap staging deploy
,我想安装rvm
,如果没有rvm
安装。
But if there is rvm
, I would like to skip this step. 但是如果有
rvm
,我想跳过这一步。
How do I achieve it with rvm1-capistrano3
? 如何使用
rvm1-capistrano3
实现它?
For capistrano3 https://github.com/rvm/rvm1-capistrano3#install-rvm-1x 对于capistrano3 https://github.com/rvm/rvm1-capistrano3#install-rvm-1x
For capistrano2 Use the install_rvm module. 对于capistrano2,请使用install_rvm模块。 https://github.com/wayneeseguin/rvm-capistrano#modules
https://github.com/wayneeseguin/rvm-capistrano#modules
It will install rvm if it is not there and update if it is. 如果不存在,它将安装rvm;如果不存在,将进行更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.