How to upgrade only one projects ruby interpreter with RVM? -
i want upgrade ruby i'm using on 1 project 1.8.7 1.9.3. however, still need 1.8.7 project not being upgraded. how can upgrade ruby using rvm , keep gemset in tact?
would rvm upgrade 1.9.3 1.8.7
way this? won't migrate every project using 1.8.7 1.9.3?
update:
it seems way rvm install 1.9.3
, migrating gems project so:
rvm gemset copy 1.8.7-p352@journal 1.9.3@journal
i'm going try now
rvm supports multiple rubies @ once in sandbox, reason existence. result, it's not necessary upgrade 1.8.7 1.9.3. can use separate ruby version, and/or gemsets projects, or different paths, depending on how want set things up.
while can upgrade across 1.8.7 1.9.3, i'd recommend keeping 1.8.7 @ final release, , install separate version of 1.9.3 @ final release (currently p392), allowing easy testing between 2 compatibility. install ruby v2.0.0 also, and, updates come out, use rvm upgrade recent, deleting older versions see fit.
i think your:
rvm gemset copy 1.8.7-p352@journal 1.9.3@journal
will work tell rvm install same gems in 1.9.3, or can install them scratch using process like:
rvm use 1.8.7
gem list | awk '{print $1}' > ./gem_list
rvm install 1.9.3
rvm use 1.9.3
xargs gem install < ./gem_list
it's been while since i've done i'm going memory.
Comments
Post a Comment