开发者

how to run different versions of rails like 3.0 and 2.3.5?

how to run different versions of rails开发者_运维百科 like 3.0 and 2.3.5?


the best solution is to use something like rvm http://rvm.beginrescueend.com/

build to different gemsets, one for each version of rails, and

rvm use 1.8.7@rails2.3.5 ... to create an app in that branch of rails, etc

you can also scope gemsets to projects and add aliases, to make it easier.

Finally, Bundler can be used, at the project level, but rails less than 3.0.0 do not require using Bundler so you need to change the setup of your app to do it. Instrutions are available on bundler's site: http://gembundler.com/


Try to use rvm you can install multiple rubies and with the help of the gemsets you can have multiple rails versions too for each ruby. Hope it helps you.


Well, you could use rvm and gemsets, or bundler.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜