# Rake gems install with local .gem files

**URL:** <https://www.ruby-forum.com/t/rake-gems-install-with-local-gem-files/145652>\
**Category:** Ruby\
**Created:** [August 12, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/rake-gems-install-with-local-gem-files/145652 "2008-08-12T16:01:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsterndale](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4bbf92/32.png) [@gsterndale](https://www.ruby-forum.com/u/gsterndale)\
**Post date:** [August 12, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/rake-gems-install-with-local-gem-files/145652/1 "2008-08-12T16:01:16Z")

</div>

Hi All,

I’d like to take advantage of Rails 2.1 config.gem and rake gems  
install when deploying (with Capistrano). Unfortunately, outgoing HTTP  
is blocked in our production environment.

I’m considering keeping a directory of all required .gem files in our  
repository and after exporting the repo on the server, pointing gem to  
them with a .gemrc config file, but I haven’t been able to figure out  
how to do so.

Does anyone know how to do this?

Any alternate ideas?

Thanks!

---

<div class="post-metadata">

**Author:** ![gsterndale](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4bbf92/32.png) [@gsterndale](https://www.ruby-forum.com/u/gsterndale)\
**Post date:** [August 12, 2008, 8:06pm UTC](https://www.ruby-forum.com/t/rake-gems-install-with-local-gem-files/145652/2 "2008-08-12T20:06:28Z")

</div>

On Aug 12, 2008, at 06:57 AM, gsterndale wrote:

> I’d like to take advantage of Rails 2.1 config.gem and rake gems  
> install when deploying (with Capistrano). Unfortunately, outgoing HTTP  
> is blocked in our production environment.
> 
> I’m considering keeping a directory of all required .gem files in our  
> repository and after exporting the repo on the server, pointing gem to  
> them with a .gemrc config file, but I haven’t been able to figure out  
> how to do so.
> 
> Does anyone know how to do this?

gem install --local
