Created
January 14, 2011 20:31
-
-
Save iamvery/780178 to your computer and use it in GitHub Desktop.
This actually should probably belong at the top of your config.ru file. The purpose is to change the GEM_HOME environment variable and then tell RubyGems to look there for gems for now on.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Specify your own GEM_HOME, but keep the standard gem path in GEM_PATH | |
ENV['GEM_HOME'] = "#{ENV['HOME']}/.gems" | |
ENV['GEM_PATH'] = "#{ENV['GEM_HOME']}:/usr/lib/ruby/gems/1.8" | |
require 'rubygems' | |
Gem.clear_paths |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was critical for me when I was trying to deploy a Rails 3 app on a Dreamhost shared server. http://discussion.dreamhost.com/thread-128599.html