浏览代码

[docs] add docs for HTTP_PROXY env var to the cli page, refs #394

Igor Wiedler 13 年之前
父节点
当前提交
29871573d0
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      doc/03-cli.md

+ 7 - 1
doc/03-cli.md

@@ -166,7 +166,7 @@ For example:
 
 ### COMPOSER_VENDOR_DIR
 
-By setting this option you can make composer install the dependencies into a
+By setting this var you can make composer install the dependencies into a
 directory other than `vendor`.
 
 ### COMPOSER_BIN_DIR
@@ -178,3 +178,9 @@ directory to something other than `vendor/bin`.
 
 This env var controls the time composer waits for commands (such as git
 commands) to finish executing. The default value is 60 seconds.
+
+### HTTP_PROXY
+
+If you are using composer from behind an HTTP proxy, you can use the standard
+`HTTP_PROXY` or `http_proxy` env vars. Simply set it to the URL of your proxy.
+Many operating systems already set this variable for you.