我试图让composer在我们的服务器上工作,但我一直遇到问题,试图安装/更新存储库。
我正确地配置了环境变量以实现所有这些:
http_proxy=http://fastweb.int.bell.ca:8083/
ftp_proxy=ftp://fastweb.int.bell.ca:8083/
HTTP_PROXY_REQUEST_FULLURI=false我还强迫我的作曲家仅使用配置指令使用HTTPS协议:
"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 .
似乎什么都起不到作用!
这是输出,它适用于所有的包,我试着用和不使用
./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?发布于 2013-08-27 06:33:46
我确认能够克隆/拉/推防火墙后的GitHub回购。
除了https_proxy之外,您还需要http_proxy
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的代理,也就是公司内部的代理)
https://stackoverflow.com/questions/18452092
复制相似问题