Tuesday 13 May 2014

using .ruby-version instead of .rvmrc

imagine you want to create a my ruby application called myrubyapp which will use ruby version 2.1.0

/bin/bash --login

rvm --create --ruby-version use ruby-2.1.0@myrubyapp


previously, you would have had a file .rvmrc, inside your myrubyapp dir, and in it would have been:

rvm use 2.1.0@myrubyapp


now, you would not create the .rvmrc file, and instead, create two files as follows: 

create a file named: .ruby-version:

in it, enter: 2.1.0

create a file named: .ruby-gemset:

in it, enter: myrubyapp

all done...

No comments:

Post a Comment