Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

setting bundler behind 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.

like image 819
sameera207 Avatar asked Dec 13 '10 09:12

sameera207


1 Answers

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.

like image 78
Wes Avatar answered Oct 21 '22 14:10

Wes