升级到silverstripe 4.3将显示“;超过了60秒的超时时间”;
当我运行此命令时,它显示一个错误:升级到silverstripe 4.3将显示“;超过了60秒的超时时间”;,silverstripe,composer-php,Silverstripe,Composer Php,当我运行此命令时,它显示一个错误: C:\wamp64\www>php upgrade-code.phar recompose --write Upgrading PHP constraint ======================== Done. Rebuilding dependencies ======================= ! [NOTE] Trying to re-require all packages * Requiring php:">
C:\wamp64\www>php upgrade-code.phar recompose --write
Upgrading PHP constraint
========================
Done.
Rebuilding dependencies
=======================
! [NOTE] Trying to re-require all packages
* Requiring php:">=5.6" ......... ✔
* Requiring silverstripe/recipe-core:"4.3.0" ....................................................................................... ✔
* Requiring silverstripe/recipe-cms:"*" .................................................................................................................................... ✔
* Requiring silverstripe/reports:"*" ............................................................................................................................................... ✔
* Requiring silverstripe/siteconfig:"*" ............................................................................................................................. ✔
* Requiring silverstripe-themes/simple:"*" .............................................................................................................................. ✔
In Process.php line 1236:
The process "composer update --working-dir="C:\Users\PKGUPT~1\AppData\Local\Temp\ss-upgrader-5c53e7ac309a8" --prefe
r-stable --ignore-platform-reqs --no-plugins" exceeded the timeout of 60 seconds.
recompose [-d|--root-dir ROOT-DIR] [-w|--write] [-S|--strict] [-R|--recipe-core-constraint [RECIPE-CORE-CONSTRAINT]] [--cwp-constraint [CWP-CONSTRAINT]] [-P|--composer-path [COMPOSER-PATH]] [-Q|--quick]
是否在CLI php.ini中设置了最大执行时间?您可以调整它,或者类似于
php-d max\u execution\u time=0 composer upgrade-code.phar…
(零是CLI的默认设置)