Install ruby gems locally

使用bundle可以先在一台环境中通过网络安装好所有gems,然后运行:

bundle package

会将所有所需要的gem文件打包到./vendor/cache目录下,然后复制这些文件到目标机器上,运行

bundle install –local

最好目标机器和原机有相同的环境。当然系统必须要相同。Linux/windows/osx

By Lu Jun

80后男,就职于软件行业。习于F*** GFW。人生48%时间陪同电子设备和互联网,美剧迷,高清视频狂热者,游戏菜鸟,长期谷粉,临时果粉,略知摄影。

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.