使用bundle可以先在一台环境中通过网络安装好所有gems,然后运行: bundle package 会将所有所需要的gem文件打包到./vendor/cache目录下,然后复制这些文件到目标机器上,运行 bundle install –local 最好目标机器和原机有相同的环境。当然系统必须要相同。Linux/windows/osx
Tag: gems
No such file or directory – getcwd
If you try to execute gem list or similar from a directory that doesn’t exist you may have seen the following error: No such file or directory – getcwd This happens if you delete your current directory, maybe you were in a gem directory and uninstalled that gem for example. So maybe you should… Continue reading No such file or directory – getcwd