开发者

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


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)


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜