#####Rvm Usage in Ruby on Rails#######
/////Creating Rvm in rails for New Project
1)rvm install ruby -v 2.0.0
2)Check the ruby versions
run this command 'rvm list'
it will show like that....
rvm rubies
ruby-1.8.7-p374 [ i686 ]
=* ruby-1.9.3-p448 [ i686 ]
ruby-2.0.0-p247 [ i686 ]
3)rvm use ruby-2.0.0-p247
4)Creating rails version
i)rvm gemset create user_project
ii)rvm gemset use user_project
iii)gem install rails -v 4.0.0
iiii)Now you can see the rails version using this command 'rails -v'
///Already Existing Project
1)rvm use ruby-2.0.0-p247
2)rvm gemset create somename
3)rvm gemset use somename
4)bundle install
Next time you want to run use this command
rvm use ruby-2.0.0-p247@somename
/////Creating Rvm in rails for New Project
1)rvm install ruby -v 2.0.0
2)Check the ruby versions
run this command 'rvm list'
it will show like that....
rvm rubies
ruby-1.8.7-p374 [ i686 ]
=* ruby-1.9.3-p448 [ i686 ]
ruby-2.0.0-p247 [ i686 ]
3)rvm use ruby-2.0.0-p247
4)Creating rails version
i)rvm gemset create user_project
ii)rvm gemset use user_project
iii)gem install rails -v 4.0.0
iiii)Now you can see the rails version using this command 'rails -v'
///Already Existing Project
1)rvm use ruby-2.0.0-p247
2)rvm gemset create somename
3)rvm gemset use somename
4)bundle install
Next time you want to run use this command
rvm use ruby-2.0.0-p247@somename
Comments
Post a Comment