我的服务器是运行CentOS x64的自定义虚拟服务器,node
已安装并正常运行。资产配置:
assetic:
use_controller: false
node: /usr/bin/node
filters:
less:
node_paths: [/usr/lib/node_modules/]
当我使用较少的过滤器访问任何页面时,我收到以下错误(CSS生成的文件的内容):
exception] 500 | Internal Server Error | Symfony\Component\Process\Exception\RuntimeException
[message] The process has been signaled with signal "11".
[1] Symfony\Component\Process\Exception\RuntimeException: The process has been signaled with signal "11".
at n/a
in /var/www/vhosts/mydomain.it/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 318
at Symfony\Component\Process\Process->wait()
in /var/www/vhosts/mydomain.it/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 197
at Symfony\Component\Process\Process->run()
in /var/www/vhosts/mydomain.it/vendor/kriswallsmith/assetic/src/Assetic/Filter/LessFilter.php line 149
at Assetic\Filter\LessFilter->filterLoad(object(FileAsset))
in /var/www/vhosts/mydomain.it/vendor/kriswallsmith/assetic/src/Assetic/Filter/FilterCollection.php line 62
at Assetic\Filter\FilterCollection->filterLoad(object(FileAsset))
in /var/www/vhosts/mydomain.it/vendor/kriswallsmith/assetic/src/Assetic/Asset/BaseAsset.php line 90
at Assetic\Asset\BaseAsset->doLoad('@vendor-dir: "../../../../../vendor";
然而,使用php app/console assetic:dump --env=dev
转储资产的工作正常。非常感谢任何帮助,谢谢。
编辑:我打开了一个问题here。
答案 0 :(得分:-2)
您可能想要:
app/console assetic:dump
)执行app/console assetic:dump -vvv
,以确定您在构建资产时确实没有任何错误。为什么呢?因为有时资产无法正确清除缓存。而且,当您处于控制台模式时,资产也会通过透明失败来隐藏错误。