每个项目 Mac OS X 的 Composer 内存不足
我昨天尝试使用Composer在我的Laravel 4项目之一上安装,我不记得确切的事件链,但它没有成功安装。从那以后,我一直收到Composer耗尽内存的错误 - .aws/aws-sdk-php
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52
我将php.ini增加到-1,这仍然发生在我的开发和生产环境中(生产是Cent OS 6)。如果我在运行时通过 CLI 增加安装,安装将成功完成,但这需要很长时间。memory_limit
memory_limit
composer_update
是否有某种缓存需要清除以防止 Composer 内存不足?我有一种感觉,每次运行 Composer 更新时,它仍在尝试安装 AWS 开发工具包。
作曲家文件
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.0.*",
"rtablada/package-installer": "dev-master",
"mogreet/mogreet-php": "dev-master",
"twilio/laratwilio": "dev-master",
"balloon/elephant.io": "dev-master",
"facebook/php-sdk": "dev-master",
"way/generators": "dev-master",
"codesleeve/asset-pipeline": "dev-master",
"natxet/CssMin": "dev-master"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php",
"app/libraries"
]
},
"scripts": {
"post-install-cmd": [
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "dev"
}