# Local .gem files and rake gems install

**URL:** <https://www.ruby-forum.com/t/local-gem-files-and-rake-gems-install/145782>\
**Category:** Deployment\
**Created:** [August 13, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/local-gem-files-and-rake-gems-install/145782 "2008-08-13T22:12:25Z")\
**Posts on this page:** 1\
**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 13, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/local-gem-files-and-rake-gems-install/145782/1 "2008-08-13T22:12:25Z")

</div>

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 other ideas?

Thanks!
