Composer 挂在生产服务器上的 FOS 用户包

Composer hangs at FOS user-bundle on production server

我一直在尝试通过 capifony 部署我的 Symfony 应用程序,但 composer 每次都在我的生产服务器上挂起。在 运行ning composer update.

时本地我没有问题

我运行 cap deploy 和...

[snip]...
  * Loading from cache
  * Extracting archive
  * - Updating friendsofsymfony/user-bundle dev-master (d5b28c3 => e39b040)
  * Checking out e39b040e272c72f0a090c67d802e1d3b2d0b0313
--> Updating parameters
    Pulling in changes:
  e39b040 - Christophe Coevoet: Mark legacy tests as legacy
  ...
  [snipped for length]
  ...
  da8100c - Daniel Ancuta: Pass missing parameter to "trans" function.
[hangs from here]

我已经尝试将各种捆绑包锁定到不同的版本,但我仍然遇到同样的问题。

composer.json

"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.3.33",
    "doctrine/orm": ">=2.2.3,<2.4-dev",
    "doctrine/doctrine-bundle": "1.2.*",
    "twig/extensions": "1.0.*",
    "symfony/assetic-bundle": "2.3.*",
    "symfony/swiftmailer-bundle": "2.3.*",
    "symfony/monolog-bundle": "2.3.*",
    "doctrine/migrations": "1.0.0-alpha3",
    "doctrine/doctrine-migrations-bundle": "1.0.1",
    "sensio/distribution-bundle": "2.3.*",
    "sensio/framework-extra-bundle": "2.3.*",
    "sensio/generator-bundle": "2.3.*",
    "incenteev/composer-parameter-handler": "~2.0",
    "friendsofsymfony/user-bundle": "~2.0@dev",
    "gregwar/captcha-bundle": "dev-master",
    "eko/feedbundle": "1.2.6",
    "jms/payment-paypal-bundle": "*",
    "jms/payment-core-bundle": "dev-master",
    "ext-curl": "*",
    "paypal/merchant-sdk-php":"v3.8.107",
    "payum/payum-bundle": "v0.8",
    "payum/paypal-express-checkout-nvp": "v0.8",
    "orderly/paypal-ipn-bundle": "dev-master",
    "knplabs/knp-gaufrette-bundle": "0.1.*",
    "amazonwebservices/aws-sdk-for-php": "1.6.2",
    "jms/translation-bundle": "dev-master",
    "azine/email-bundle": "1.0.3",
    "stfalcon/tinymce-bundle": "dev-master"
},

有什么想法吗?

经过更多谷歌搜索,我发现了这个:

https://github.com/everzet/capifony/issues/549

显然有时您必须在部署过程中按 ENTER 键。我只是等待并放弃按 CTRL+C。我最终需要多次按回车键才能完成。这在我这样部署的 2 年里还没有发生过。