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

This entry was posted in Dev, Ruby and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

2 Comments

  1. Nate
    Posted October 16, 2008 at 11:12 am | Permalink

    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

  2. MattK
    Posted October 20, 2008 at 1:58 pm | Permalink

    very true nate.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Categories

  • Updates

    Enter your email address for updates:

    Subscribe via RSS
  • Old Posts