开发者

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

开发者 https://www.devze.com 2023-01-26 21:43 出处:网络
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 th

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

精彩评论

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