首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用公司防火墙后面的composer更新/安装

无法使用公司防火墙后面的composer更新/安装
EN

Stack Overflow用户
提问于 2013-08-26 20:01:47
回答 1查看 4.2K关注 0票数 3

我试图让composer在我们的服务器上工作,但我一直遇到问题,试图安装/更新存储库。

我正确地配置了环境变量以实现所有这些:

代码语言:javascript
复制
http_proxy=http://fastweb.int.bell.ca:8083/
ftp_proxy=ftp://fastweb.int.bell.ca:8083/
HTTP_PROXY_REQUEST_FULLURI=false

我还强迫我的作曲家仅使用配置指令使用HTTPS协议:

代码语言:javascript
复制
"config": {
    "github-protocols": ["https"]
}

我们试图在post SSL certificate rejected trying to access GitHub over HTTPS behind firewall之后更新SSL certificate rejected trying to access GitHub over HTTPS behind firewall,方法是在/etc/pki/tls/certs中设置GIT_SSL_NO_VERIFY或更新ca-bundle.crt .

似乎什么都起不到作用!

这是输出,它适用于所有的包,我试着用和不使用

代码语言:javascript
复制
./composer.phar update Loading composer repositories with package
information Updating dependencies (including require-dev)
    - Updating crazycodr/data-transform (dev-master 11f8499 => 2.0.2)
    Checking out 11f8499d0027468705fca72ab67acfbf8ee2e6be

[RuntimeException]   Failed to clone
https://github.com/crazycodr/data-transform.git via git, https and
http protocols, aborting.

- https://github.com/crazycodr/data-transform.git
    fatal: https://github.com/crazycodr/data-transform.git/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-08-27 06:33:46

我确认能够克隆/拉/推防火墙后的GitHub回购。

除了https_proxy之外,您还需要http_proxy

代码语言:javascript
复制
set http_proxy=http://<login_internet>:<password_internet>@aproxy:aport
set https_proxy=http://<login_internet>:<password_internet>@aproxy:aport
set no_proxy=.company

( no_proxy部分的存在是为了避免使用内部url的代理,也就是公司内部的代理)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18452092

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档