2012-08-15 85 views
1

我有一个包含此的DEP条目的rebar.config:螺纹钢依赖

{cowboy, ".*", {git, "http://github.com/extend/cowboy.git", {branch, "master"}}}

的当我运行 “螺纹钢编译” 我得到这个:

Dependency not available: cowboy-.* ({git, "http://github.com/extend/cowboy.git", {branch,"master"}})

我相信这是因为我在防火墙后面,而我唯一的访问Internet的方式是通过一个http代理。有没有办法设置螺纹钢使用HTTP代理?

回答

1

看来,rebar使用git来获取依赖关系,当deps tuple containts {git, "http://..."}。所以我通过在.gitconfig中加入这个来解决这个问题:

[http] 
    proxy = http://myproxy-url.com:8080