Sheena
Sheena

Reputation: 16212

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

Upvotes: 7

Views: 10052

Answers (2)

sdweldon
sdweldon

Reputation: 189

If anyone is STILL having trouble with the bundler, try using CNTLM to configure http://localhost:3128 as your proxy. Then follow the steps in this answer. FINALLY worked for me.

Upvotes: 0

Pierre
Pierre

Reputation: 8348

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)

Upvotes: 24

Related Questions