title: ENV['MY_RUBY_HOME'] is nil while trying to get nginx to play with rvm
body: <p>I want to nginx to serve a rails app. I've set up my gems using an rvm gemset. From the <a href="https://rvm.io/integration/passenger/" rel="nofollow">directions</a> to get nginx to load my gemset, I made a config/setup_load_paths.rb file:</p>
  
  <pre><code>if ENV['MY_RUBY_HOME'] &amp;&amp; ENV['MY_RUBY_HOME'].include?('rvm')
    begin
      rvm_path     = File.dirname(File.dirname(ENV['MY_RUBY_HOME']))
      rvm_lib_path = File.join(rvm_path, 'lib')
      puts rvm_lib_path.inspect
      $LOAD_PATH.unshift rvm_lib_path
      require 'rvm'
      RVM.use_from_path! File.dirname(File.dirname(__FILE__))
    rescue LoadError
      # RVM is unavailable at this point.
      raise "RVM ruby lib is currently unavailable."
    end
  end
  
  ENV['BUNDLE_GEMFILE'] = File.expand_path('../Gemfile', File.dirname(__FILE__))
  require 'bundler/setup' 
  </code></pre>
  
  <p>This doesn't seem to do it. So trying to debug, I found that <code>ENV['MY_RUBY_HOME']</code> is actually Nil and hence the first block of code doesn't even run. Why is this Nil, and what can I do to fix this?</p>