I have a server that is totally disconnected from the Internet (for some strange security reasons).
How can I make the Ruby dependencies to various gems work in that environment? It might work with Bundler, but how do I install Bundler using gem without a Internet connection?
You can download bundler as a
.gemfile from rubygems and install it on the server withThen you can pack all gems required for your application into
./vendor/cachedirectory withIf now you deploy your app (along with
./vendor/cachedirectory) to the server and runbundler won’t go to rubygems, but instead will install all gems from
./vendor/cachedirectory.See
bundler-packagedocs for more information.