2013-05-30 95 views
0

我在本地机器上安装了ruby-2.0.0-p0。当我部署我的Rails应用程序时,出现了很多错误,我修复了它,并且它正在运行。但同样,1天后,我尝试在运行相同的应用程序,我得到这个消息Capistrano在.rvmrc文件中部署错误

You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers, 
you can switch to '.ruby-version' using 'rvm rvmrc to [.]ruby-version' 
or ignore this warnings with 'rvm rvmrc warning ignore /home/Desktop/PV-NEC/pv-nec/.rvmrc', 
'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2, 
to ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'. 

ruby-2.0.0-p195 is not installed. 
To install do: 'rvm install ruby-2.0.0-p195' 

我已经把rvm use [email protected]代码在我.rvmrc文件。我是否需要改变它或做其他事情。

+0

哎,我改变我的本地机器RVM使用Ruby-2.0.0-P0 .rmvrc文件,但不不是服务器中的.rmvrc。我将相同的ruby-2.0.0-p195放入服务器的.rmvrc文件中 –

回答

0

第一与命令显示在错误安装红宝石:

rvm install ruby-2.0.0-p195 

并用命令创建适当的宝石

rvm gemset create gemset_name 

然后键入这个从.rvmrc切换到.ruby版本+ .ruby-宝石

rvm rvmrc to .ruby-version