title: Ruby bundle creating a self contained package
body: <p>My objective is:<br>
  Create a self contained tar.gz of a ruby app (graylog2-web-client) that I can install and run on a box with <em>no internet connection</em> and only ruby 1.9.3 installed (rvm, bundler, etc. will not be available).</p>
  
  <p>I have installed and launched the app correctly, now I wish to package it and move it to the target box. </p>
  
  <p></p>
  
  <p>Update to question:</p>
  
  <p>I used bundle install --development to ensure that all gems are in the vendor/cache.
  I tared the package and moved it to new box. 
  I have updated my path so that my 1.9.3 ruby install comes before the default 1.8.x.</p>
  
  <pre><code>ruby --version 
  ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux]
  </code></pre>
  
  <p>However when I run  <code>RAILS_ENV=production script/rails server</code></p>
  
  <p>I get require/dependency errors:</p>
  
  <pre><code>/usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler/setup (LoadError)
      from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
      from /opt/graylog2-web-interface-0.11.0/config/boot.rb:6:in `&lt;top (required)&gt;'
      from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
      from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
      from script/rails:5:in `&lt;main&gt;'
  </code></pre>
  
  <p>My vender dir:</p>
  
  <pre><code>├── bundle
  │   └── ruby
  │       └── 1.9.1
  ├── cache
  │   ├── actionmailer-3.2.13.gem
  │   ├── actionpack-3.2.13.gem
  │   ├── activemodel-3.2.13.gem
       ...... lots more gems.......
  </code></pre>
  
  <p>I bundled this under 1.9.3 why is my bundle showing 1.9.1?</p>