在 Windows 上通过代理安装 Rails 捆绑包
我正在尝试从 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下是对我有用的方法:
转到系统属性(右键单击“我的电脑”>“属性”)。
在高级选项卡中,查找“环境变量按钮”。
添加一个名为 http_proxy 的变量,其值为 http://username:password@proxyserver:port
重新启动控制台,您应该可以了去。
一些注意事项:
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:
如果有人仍然遇到捆绑程序问题,请尝试使用 CNTLM 将
http://localhost:3128
配置为代理。然后按照此答案中的步骤进行操作。终于为我工作了。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.