【发布时间】:2013-05-07 19:08:50
【问题描述】:
调用时我的部署失败:
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
【问题讨论】:
-
我遇到了同样的问题。你今天更新作曲家了吗?
-
kriswallsmith/assetic从 alpha4 更新到 beta1,github.com/kriswallsmith/assetic/issues/412 -
是的!既然它坏了!即使在开发环境中!查看我的编辑。
-
@Ascherer 如何查看我在开发环境中使用的哪个版本以及如何告诉我的作曲家坚持这个版本?
-
检查 composer.lock,搜索资产,应该看到版本。检查我的答案,告诉它要坚持哪个版本
标签: symfony deployment assetic capifony