Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>From: <a href="https://rvm.beginrescueend.com/integration/passenger/" rel="nofollow">https://rvm.beginrescueend.com/integration/passenger/</a></p> <p>In your <code>.rvmrc</code> do:</p> <pre><code>if [[ -s "/Users/sutto/.rvm/environments/ree-1.8.7-2010.02@my-app-name" ]] ; then . "/Users/sutto/.rvm/environments/ree-1.8.7-2010.02@my-app-name" else rvm --create use "ree-1.8.7-2010.02@my-app-name" fi </code></pre> <p>Or just create it with:</p> <pre><code>cd path/to/project &amp;&amp; rvm use ree-1.8.7-2010.02@my-app-name --rvmrc --create </code></pre> <p>Then in each rails project, add a new file <code>config/setup_load_paths.rb</code> and add</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') $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 # Select the correct item for which you use below. # If you're not using bundler, remove it completely. # # # If we're using a Bundler 1.0 beta # ENV['BUNDLE_GEMFILE'] = File.expand_path('../Gemfile', File.dirname(__FILE__)) # require 'bundler/setup' # # # Or Bundler 0.9... # if File.exist?(".bundle/environment.rb") # require '.bundle/environment' # else # require 'rubygems' # require 'bundler' # Bundler.setup # end </code></pre> <p>Of course you should replace <code>/Users/sutto/.rvm</code> by your rvm path, and <code>ruby-1.8.7-p334@snowcrash</code> by the correct gemset.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload