How to get Ruby Gems to work behind the corporate firewall

This is just a note to remind me.  Ruby and ruby gems don’t automatically pick up on your proxy information in IE.  Instead, find out the proxy and set the following environment variables.

in windows:  set http_proxy=http://user:password@internalcorporateproxy.com

in cygwin/unix: export http_proxy http://user:password@internalcorporateproxy.com

But wait, there's more

2 thoughts on “How to get Ruby Gems to work behind the corporate firewall

  1. I believe that you also want the port at the end of it. So, something like export http_proxy=user:password@internalcorporateproxy.com:8080

    –Nate

Leave a Reply

Your email address will not be published. Required fields are marked *