调用时我的部署失败:
cd /var/www/prod/releases/20130513164742 && php app/console assetic:dump --env=prod --no-debug
昨天我的设置运行良好,但今天我无法使用cap deploy
通过在我的 prod 环境中克隆 repo 并执行检查的命令来部署它php app/console assetic:dump --env=prod --no-debug
(在开发模式下)检查的命令来部署它,并且运行良好!
任何想法 ?
** [out :: prod] executing "sh -c 'cd /var/www/prod/releases/20130513164742 && php app/console assetic:dump --env=prod --no-debug'"
** [out :: prod] PHP Deprecated: getEntityManager is deprecated since Symfony 2.1. Use getManager instead in /var/www/prod/shared/vendor/doctrine/doctrine-bundle/Doctrine/Bundle/DoctrineBundle/Registry.php on line 71
** [out :: prod] Dumping all prod assets.
** [out :: prod] Debug mode is off.
** [out :: prod]
** [out :: prod]
** [out :: prod]
** [out :: prod]
** [out :: prod] [ReflectionException]
** [out :: prod] Method Assetic\AssetWriter::getCombinations() does not exist
** [out :: prod]
** [out :: prod]
** [out :: prod]
** [out :: prod] assetic:dump [--watch] [--force] [--period="..."] [write_to]
** [out :: prod]
** [out :: prod]
编辑:
在我的 git clone 上更新供应商后,我收到此错误
www-data@Prod:~/prod/dev$ php app/console assetic:dump --env=prod --no-debug
PHP Catchable fatal error: Argument 2 passed to Doctrine\Bundle\DoctrineBundle\ManagerConfigurator::__construct() must be an array, none given, called in /var/www/prod/dev/app/cache/prod/appProdProjectContainer.php on line 116 and defined in /var/www/prod/dev/vendor/doctrine/doctrine-bundle/Doctrine/Bundle/DoctrineBundle/ManagerConfigurator.php on line 35