开发者

before RVM, what did people do to isolote gems per website on a server?

if you have a server with many rails applications hosted开发者_如何学运维 on it, and each have different versions of gems etc., how would you isolate gems per website w/o using RVM?


Unpack them into the vendor directory if you're working with Rails.


Rails 3 implemented bundler to provide support for this age old problem. Vendoring was the standard, but bundler allows system level installs of several versions of the same gem and will graph the dependency properly for each app at startup.


Specify them in environment.rb with the version number then run rake gems: install

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜