Symfony2:在prod中转储资产时出现Twig错误

时间:2013-12-03 00:23:40

标签: php symfony twig

尝试转储prod资产导致

  

[Twig_Error_Loader]   “/www2.projectmana.org/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/views”目录不存在。

使用命令

php app/console assetic:dump --env=prod --no-debug

在共享主机上的chroot环境中。该目录确实存在,其内容可以由此非root用户列出,因此不太可能是权限问题。

更新:命令结果:

projectmana@vhost4:/home/projectmana % ls -l /www2.projectmana.org/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/views
ls: /www2.projectmana.org/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/views: No such file or directory
projectmana@vhost4:/home/projectmana % cd www2.projectmana.org
projectmana@vhost4:/home/projectmana/www2.projectmana.org % ls -l vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/views                     total 4
drwxr-xr-x  2 projectmana  projectmana  47 Oct 26 16:14 Form
drwxr-xr-x  2 projectmana  projectmana   6 Oct 26 16:14 FormTable
projectmana@vhost4:/home/projectmana/www2.projectmana.org %

0 个答案:

没有答案