title: Switch from RVM to rbenv passenger preload/bundle errors on app start RubyVersionMismatch
body: <p>It looks like the Phusion Passenger preloader or bundler is calling the system version of kernel_require.rb rather than the rbenv version of kernel_require.rb and bundler complains about <code>RubyVersionMismatch</code> when I startup my Rails 4.1 application. This is my local dev box but I also have a "local" environment for deployment using Apache 2.2.27 (macports).</p>
  
  <p>I completely removed RVM per the instructions, installed rbenv per the instructions then installed Ruby 2.1.2, Rails 4.1.5, Passenger, and did <code>passenger-install-apache2-module</code>.  All these were done in my deploy account then I created a blank testing application. When the application starts up the Apache error log reports <code>Bundler::RubyVersionMismatch</code>.</p>
  
  <p>Note that the application seems to work just fine. </p>
  
  <p>log lines referencing rbenv ruby:</p>
  
  <pre><code>log:1 /path/to/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.7.2/lib/bundler/definition.rb:385:in `validate_ruby!': Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2 (Bundler::RubyVersionMismatch)
  log:2 /path/to/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.7.2/lib/bundler.rb:117:in `setup'
  log:3 /path/to/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.7.2/lib/bundler/setup.rb:17:in `&lt;top (required)&gt;'
  </code></pre>
  
  <p>log lines referencing mac system ruby:</p>
  
  <pre><code>log:4 /System/Library/Frameworks/Ruby.framework/Versions/2.0/.../ruby/2.0.0/rubygems/.../kernel_require.rb:55:in `require'
  log:5 /System/Library/Frameworks/Ruby.framework/Versions/2.0/.../ruby/2.0.0/rubygems/.../kernel_require.rb:55 in `require'
  log:6 Pool2/SmartSpawner.h:298: Preloader for /path/to/my/deploy/rails/testing/current started on PID 33863
  </code></pre>
  
  <p>Environment:</p>
  
  <pre><code>OSX 10.9.4
  Apache 2.2.27 installed via macports to /opt/local/apache2 etc
  rbenv local 2.1.2  
  rbenv global 2.1.2
  rbenv which ruby /path/to/.rbenv/versions/2.1.2/bin/ruby
  rbenv whence passenger 2.1.2
  rails -v 4.1.5
  bundler version 1.7.2
  using mina v0.3.0, mina-rsync for deploy
  </code></pre>
  
  <p>Passenger config for apache:</p>
  
  <pre><code>LoadModule passenger_module /path/to/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/buildout/apache2/mod_passenger.so
  PassengerRoot /path/to/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/passenger-4.0.50
  PassengerDefaultRuby /path/to/.rbenv/versions/2.1.2/bin/ruby
  </code></pre>