2012-08-15 87 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