Skip to content

Commit

Permalink
Attempt to load local gems
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason L Perry committed Jan 29, 2009
1 parent 4b943ac commit c0533c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/environment.rb
Expand Up @@ -4,7 +4,10 @@
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'

ENV["GEM_PATH"] = "/home/cuniculi/.gem:#{ENV["GEM_PATH"]}" if ENV["RAILS_ENV"] == "production"
if ENV["RAILS_ENV"] == "production"
ENV["GEM_HOME"] = "/home/cuniculi/.gems"
ENV["GEM_PATH"] = "/home/cuniculi/.gem:#{ENV["GEM_PATH"]}"
end

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.1.1' unless defined? RAILS_GEM_VERSION
Expand Down

0 comments on commit c0533c7

Please sign in to comment.