浏览代码

Merge pull request #7157 from xabbuh/patch-1

document the COMPOSER_MEMORY_LIMIT env var
Jordi Boggiano 7 年之前
父节点
当前提交
a652039cc2
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      doc/articles/troubleshooting.md

+ 6 - 0
doc/articles/troubleshooting.md

@@ -140,6 +140,12 @@ Debian-like systems):
 memory_limit = -1
 ```
 
+Composer also respects a memory limit defined by the `COMPOSER_MEMORY_LIMIT` environment variable:
+
+```sh
+COMPOSER_MEMORY_LIMIT=-1 composer.phar <...>
+```
+
 Or, you can increase the limit with a command-line argument:
 
 ```sh