从公司防火墙后面安装宝石 [英] Installing gems from behind a corporate firewall

查看:152
本文介绍了从公司防火墙后面安装宝石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怀疑公司防火墙正在阻止安装宝石。我已经定义了HTTP_PROXY,并且可以通过以下命令查看远程宝石:

I suspect that the corporate firewall is preventing gems from getting installed. I have HTTP_PROXY defined and I'm able to view remote gems via the following command:

jruby -S gem list -r

但是当我去安装一个gem时,我得到了一个404:

But when I go to install a gem, I get a 404:

jruby -S gem install rails

解决这个问题是否有一个很好的解决方法,而不是维护一个内部gem仓库?

Is there a good workaround for resolving this issue other than maintaining an internal gem repository?

推荐答案

gemcutter.org人们将模式转移到亚马逊的Cloudfront,并能够通过我的雇主的防火墙再次下载宝石。

I've retested this since the gemcutter.org folks made the mode to Amazon's Cloudfront and am able to download gems again through my employer's firewall.

这篇关于从公司防火墙后面安装宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆