title: cannot load such file -- bundler/setup (LoadError) || deploy on Ubuntu 12.04 x32
body: <p>I try to deploy my rails app with Nginx, passenger on Ubuntu 12.04 x32. after all things is done, I visit my rails app, but it tell me 'We're sorry, but something went wrong.'. </p>
  
  <p>then I <code>cat /var/log/nginx/error.log</code>, I find this lines:</p>
  
  <pre><code>Message from application: cannot load such file -- bundler/setup (LoadError)
  /home/thomas/.rvm/rubies/ruby-2.0.0-  p643/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  /home/thomas/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:278:in `block in run_load_path_setup_code'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:381:in `running_bundler'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:276:in `run_load_path_setup_code'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:99:in `preload_app'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:157:in `&lt;module:App&gt;'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `&lt;module:PhusionPassenger&gt;'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `&lt;main&gt;'
  </code></pre>
  
  <p>I use rvm and rbenv</p>
  
  <pre><code>$ ruby -v
  ruby 2.0.0p643 (2015-02-25 revision 49749) [i686-linux]
  $ rbenv versions
  system
  * 2.0.0-p643 (set by /home/thomas/.rbenv/version)
  </code></pre>
  
  <p>and I hava already installed bundler</p>
  
  <pre><code>$ bundler -v
  Bundler version 1.9.2
  </code></pre>
  
  <p>and here is my gem env:</p>
  
  <pre><code>RubyGems Environment:
    - RUBYGEMS VERSION: 2.4.6
    - RUBY VERSION: 2.0.0 (2015-02-25 patchlevel 643) [i686-linux]
    - INSTALLATION DIRECTORY: /home/thomas/.rvm/gems/ruby-2.0.0-p643
    - RUBY EXECUTABLE: /home/thomas/.rvm/rubies/ruby-2.0.0-p643/bin/ruby
    - EXECUTABLE DIRECTORY: /home/thomas/.rvm/gems/ruby-2.0.0-p643/bin
    - SPEC CACHE DIRECTORY: /home/thomas/.gem/specs
    - SYSTEM CONFIGURATION DIRECTORY: /home/thomas/.rvm/rubies/ruby-2.0.0-p643/etc
    - RUBYGEMS PLATFORMS:
      - ruby
      - x86-linux
    - GEM PATHS:
       - /home/thomas/.rvm/gems/ruby-2.0.0-p643
       - /home/thomas/.rvm/gems/ruby-2.0.0-p643@global
    - GEM CONFIGURATION:
       - :update_sources =&gt; true
       - :verbose =&gt; true
       - :backtrace =&gt; false
       - :bulk_threshold =&gt; 1000
    - REMOTE SOURCES:
       - https://rubygems.org/
    - SHELL PATH:
       - /home/thomas/.rvm/gems/ruby-2.0.0-p643/bin
       - /home/thomas/.rvm/gems/ruby-2.0.0-p643@global/bin
       - /home/thomas/.rvm/rubies/ruby-2.0.0-p643/bin
       - /home/thomas/.rvm/bin
       - /home/thomas/.rbenv/bin
       - /home/thomas/.rbenv/shims
       - /home/thomas/.rbenv/bin
       - /usr/local/sbin
       - /usr/local/bin
       - /usr/sbin
       - /usr/bin
       - /sbin
       - /bin
       - /usr/games
  </code></pre>
  
  <p>have someone experienced same problem?
  thanks</p>
  
  <p>update:
  my <code>/etc/nginx/nginx.conf</code> and <code>/etc/nginx/sites-enabled/blog.conf</code>:
  <a href="https://gist.github.com/wall2flower/b3f410317585a8803a27" rel="noreferrer">https://gist.github.com/wall2flower/b3f410317585a8803a27</a>
  <a href="https://gist.github.com/wall2flower/72316e8b437d654e7070" rel="noreferrer">https://gist.github.com/wall2flower/72316e8b437d654e7070</a></p>