gem
will use the HTTP_PROXY
environment variable if set. Just set that in Windows 7 and it will be used by default.
Set proxy for rubygems
-
20-07-2023 - |
题
Is there a way to specify somewhere the proxy in rails projects so that I don't have to manually type it each time, like this:
gem install --HTTP-PROXY http://web-proxy:8088 bundle
I need to be able to type: gem install bundle
and the proxy should be 'understood' by default. How can this be done? I am using Windows 7.
解决方案
不隶属于 StackOverflow