Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rails bundle install via proxy on windows

I'm trying to run bundle install from behind a proxy in windows, it's not working. Is there a setting somewhere i can change to make it happen?

I know the proxy is the issue because it worked before and that's the only thing that could have messed things up

like image 601
Sheena Avatar asked May 17 '11 21:05

Sheena


1 Answers

Here's what has worked for me:

Go to the system properties (right click "My Computer" > Properties). In the advanced tab, look for the "Environment variables button". Add a variable called http_proxy with the value http://username:password@proxyserver:port

Restart your console and you should be good to go.

A few caveats:

  • by experience, drop the domain in your username (if you have one)
  • some passwords will break this (e.g. passwords which contain an @ sign)
like image 117
Pierre Avatar answered Oct 13 '22 00:10

Pierre