Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

stuff for rvm/passenger deployment

  • Loading branch information...
commit 4131f1c22d5ee126d23674187acf19144ee97e23 1 parent 08ae348
@jessor authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 config/setup_load_paths.rb
  2. 0  public/.gitignore
View
12 config/setup_load_paths.rb
@@ -0,0 +1,12 @@
+if ENV['MY_RUBY_HOME'] && 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
View
0  public/.gitignore
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.