symfony - Method Assetic\AssetWriter::getCombinations() does not exist exception on symfony2 deploy using capifony -
my deployment fail when calling:
cd /var/www/prod/releases/20130513164742 && php app/console assetic:dump --env=prod --no-debug
my setup worked fine yestertay today can't deploy using cap deploy
command checked cloning repo in prod environment , executing php app/console assetic:dump --env=prod --no-debug
(in dev mode), , worked fine !
any idea ?
** [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 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 prod assets. ** [out :: prod] debug mode off. ** [out :: prod] ** [out :: prod] ** [out :: prod] ** [out :: prod] ** [out :: prod] [reflectionexception] ** [out :: prod] method assetic\assetwriter::getcombinations() not exist ** [out :: prod] ** [out :: prod] ** [out :: prod] ** [out :: prod] assetic:dump [--watch] [--force] [--period="..."] [write_to] ** [out :: prod] ** [out :: prod]
edit:
after updating vendor on git clone error
www-data@prod:~/prod/dev$ php app/console assetic:dump --env=prod --no-debug php catchable fatal error: argument 2 passed doctrine\bundle\doctrinebundle\managerconfigurator::__construct() must array, none given, called in /var/www/prod/dev/app/cache/prod/appprodprojectcontainer.php on line 116 , defined in /var/www/prod/dev/vendor/doctrine/doctrine-bundle/doctrine/bundle/doctrinebundle/managerconfigurator.php on line 35
https://github.com/kriswallsmith/assetic/issues/412
add "kriswallsmith/assetic": "v1.1.0-alpha4"
,
to composer.json file, , update again
you'll want change when fix issue
edit:
for record, moving "symfony/symfony": "2.3.*"
works now, without specifying above
Comments
Post a Comment