# Rails Deployment

**URL:** <https://www.ruby-forum.com/t/rails-deployment/174632>\
**Category:** Rails\
**Created:** [August 30, 2009, 11:35am UTC](https://www.ruby-forum.com/t/rails-deployment/174632 "2009-08-30T11:35:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhruvasagar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@dhruvasagar](https://www.ruby-forum.com/u/dhruvasagar)\
**Post date:** [August 30, 2009, 11:35am UTC](https://www.ruby-forum.com/t/rails-deployment/174632/1 "2009-08-30T11:35:51Z")

</div>

Hi,

How do I configure my rails app for a custom gems directory ?  
My hosting tells me that I need to add this to my scripts :  
$:.push(“/home/concptpl/ruby/gems”)

But that seems to be for independent ruby scripts, how to I configure  
rails  
accordingly ?

Thanks & Regards,  
Dhruva S…

## Ogden Nash [http://www.brainyquote.com/quotes/authors/o/ogden\_nash.html](http://www.brainyquote.com/quotes/authors/o/ogden_nash.html)

“The trouble with a kitten is that when it grows up, it’s always a cat.”

---

<div class="post-metadata">

**Author:** ![dhruvasagar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@dhruvasagar](https://www.ruby-forum.com/u/dhruvasagar)\
**Post date:** [August 30, 2009, 1:28pm UTC](https://www.ruby-forum.com/t/rails-deployment/174632/2 "2009-08-30T13:28:49Z")

</div>

From [http://www.rubygems.org/read/chapter/3](http://www.rubygems.org/read/chapter/3)

If a user does not have access to the standard installation location  
(typically /usr/local/lib/ruby), then they have the option of  
installing RubyGems in a alternate location.

Note that if you can’t install RubyGems in the standard location, then  
you probably can’t install gems in the standard gem repository  
location either. You need to specifiy a non-standard gem repository  
location via the GEM\_HOME environment variable.

Use the following to install RubyGems in a user directory (here  
called /home/mystuff) with a repository named /home/mygemrepository):

$ export GEM\_HOME=/home/mygemrepository
