Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make rvmrc file in project root folder?

Tags:

I have just installed RVM in my machine and facing problem with rvmrc file, can anyone help me out, how to create rvmrc?

I just did:

rvmrc --create ruby-1.8.7-p352@gemset 

but didn't get the result...

like image 447
Aftab Khalid Avatar asked Jun 21 '12 12:06

Aftab Khalid


1 Answers

It seems that there is a small mistake. Inside your .rvmrc file add:

rvm use ruby-1.8.7-p352@gemset --create 

Also you might want to change the name of your gemset to something that is a bit more intuitive to read :)

UPDATE

Using the rvmrc file has now been deemed deprecated. Instead a .ruby-version file with the ruby version e.g. '2.0.0' and a .ruby-gemset file with the gemset name e.g. 'monkeys_of_doom'

This way developers using other version managers such as rbenv can pick up the ruby version in an automated fashion.

like image 61
sohaibbbhatti Avatar answered Oct 12 '22 01:10

sohaibbbhatti