开发者

setting bundler behind proxy

开发者 https://www.devze.com 2023-01-30 01:31 出处:网络
I\'m trying to use bundler in my Rails application. But I can\'t get it working as I\'m behind a proxy and I\'m not sure how to configure bundler with proxy.

I'm trying to use bundler in my Rails application. But I can't get it working as I'm behind a proxy and I'm not sure how to configure bundler with proxy.

My $http_proxy variable is also set.

I'm using:

Rails - 3.0.0

Bundler - 1.0.7

Linux

And I have red that adding http_proxy to .gemrc file. But I couldn't开发者_开发问答 locate that file in my Linux box.


Hi you need to create the .gemrc file. To set the http proxy for RubyGems put the following in ~/.gemrc

---
http_proxy: PROXY_URL

Replace PROXY_URL with whatever you currently have in the http_proxy environment variable you mentioned.


I added http_proxy: PROXY_URL (note underscore) into .gemrc which worked for me thanks to David Padbury (comments above).

---
http_proxy: PROXY_URL
0

精彩评论

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