You can download bundler as a .gem file from rubygems and install it on the server using
gem install /path/to/bundler.gem
You can then pack all the gems needed for your application into the ./vendor/cache directory with
bundle package
If now you deploy your application (along with ./vendor/cache ) on the server and run
bundle install
bundler will not go to rubygems, but instead will install all the gems from the ./vendor/cache directory.
See bundler-package docs for more details.
source share